maybe easier to use Dashboard replacement
Moderators: grovkillen, Stuntteam, TD-er
Re: maybe easier to use Dashboard replacement
Hello
I undersand also the feeling
You do a very nice job already
for the documentation, it's up to us to fight a little bit
Versionning can be just a time stamp for example
keep the good job running easy
I undersand also the feeling
You do a very nice job already
for the documentation, it's up to us to fight a little bit
Versionning can be just a time stamp for example
keep the good job running easy
Re: maybe easier to use Dashboard replacement
Thank you for the nice words and I really appreciate that!
So long, have a nice weekend!
For the versioning i now use the date as suggested. It appears when you hover over the info button.
Thanks also for your sharing your ideas TD-er. Right now i kind of using this thread as a kind of notebook, where you can find the latest changes and hopefully soon, based on that I'll complete the documentation on GitHub.
So long, have a nice weekend!
Re: maybe easier to use Dashboard replacement
Hello dear ESPeasier,
I added today pushbuttons to easyfetch because i was in need for it. I have a project, where i need to control a motor and having pushbuttons for this is quite useful.
- create a dummy device which name includes "pButtons" and every value becomes a virtual pushbutton (add "&<unitnumber>" to the valuename and it sends the event directly to another node)
- start pressing a button creates an event based on the this: <valuename> + "Event=1"
- letting go of the button creates an event like this: <valuename> + "Event=0"
Here the visual howto:
I added today pushbuttons to easyfetch because i was in need for it. I have a project, where i need to control a motor and having pushbuttons for this is quite useful.
- create a dummy device which name includes "pButtons" and every value becomes a virtual pushbutton (add "&<unitnumber>" to the valuename and it sends the event directly to another node)
- start pressing a button creates an event based on the this: <valuename> + "Event=1"
- letting go of the button creates an event like this: <valuename> + "Event=0"
Here the visual howto:
Last edited by chromo23 on 24 Jan 2023, 21:41, edited 1 time in total.
Re: maybe easier to use Dashboard replacement
Hi,
because nobody asked for it, i honestly don’t know why i did this (because i actually don’t need it) and because Tasmota has one too, i present the neoPixel-Slider.
I actually had a 10KByte limit for the file size....i landed at almost 10,3KByte So no features anymore (except they have to do with accessibility)
- name a dummy device something that has "neoPixel" in it and you can create slider for hsv values. Name a value either "h", "s", or "v"
- You can choose wich slider you need. You can use all three or just one.
- An event looks like this: <devicename(e.g. "neoPixel1")>+"Event="+ <h-value> + <s-value> + <v-value> Edit: Code Example:
because nobody asked for it, i honestly don’t know why i did this (because i actually don’t need it) and because Tasmota has one too, i present the neoPixel-Slider.
I actually had a 10KByte limit for the file size....i landed at almost 10,3KByte So no features anymore (except they have to do with accessibility)
- name a dummy device something that has "neoPixel" in it and you can create slider for hsv values. Name a value either "h", "s", or "v"
- You can choose wich slider you need. You can use all three or just one.
- An event looks like this: <devicename(e.g. "neoPixel1")>+"Event="+ <h-value> + <s-value> + <v-value> Edit: Code Example:
Code: Select all
On neoPixelEvent Do
NeoPixelAllHSV,%eventvalue1%,%eventvalue2%,%eventvalue3%
Endon
Re: maybe easier to use Dashboard replacement
That looks great!
Do you also have support for RGB sliders? (I'm not up to date with all EasyFetch features, sorry)
Do you also have support for RGB sliders? (I'm not up to date with all EasyFetch features, sorry)
/Ton (PayPal.me)
Re: maybe easier to use Dashboard replacement
No, sorry...
I thought HSV (or HSL) is much more common for these kind of slider that´s why i did it.
I only have space for one kind of slider with my freshly self imposed feature freeze...
But for you i could lift it.
Or if you say, the RGB slider would be better suited for controlling neopixel i change exchange it with the other one.
Re: maybe easier to use Dashboard replacement
It should only be a very simple matrix multiplication to get from one color space to the other.
Re: maybe easier to use Dashboard replacement
It was more an information request than a feature request. I probably won't be using that as IMHO the HSV is very usable, and we have conversions (both directions) available (though not available from rules, I think).
Don't lift that code-freeze just for this, please
/Ton (PayPal.me)
Re: maybe easier to use Dashboard replacement
IMOPRTANT NOTE!
Since the introduction of side swipe to open the navigation menu, html requests will add up with every swipe which leads to freezes and reboots!
If you have a build like that, please update to the latest version!
Since the introduction of side swipe to open the navigation menu, html requests will add up with every swipe which leads to freezes and reboots!
If you have a build like that, please update to the latest version!
Re: maybe easier to use Dashboard replacement
Can't have freezes with the current energy prices...
Re: maybe easier to use Dashboard replacement
Absolutely! But i am thinking to re add this "feature" in the summer where one can plaster the walls with microcontroller, saving the AC.
- Andrew Mamohin
- Normal user
- Posts: 95
- Joined: 12 Jun 2020, 08:30
- Location: Belarus, Gomel
- Contact:
Re: maybe easier to use Dashboard replacement
Hi!
I read your topic and I realized that this is very difficult for me. Could you write me a file so that it simply shows the values of my kitchen timer in the browser, which is made in ESPEASY?
Just: "XX min XX sec", maybe add another button "stop".
Minutes and seconds, these are the values of Dummy Device: [DI#M] and [DI#S].
This is necessary so that my wife, when working at the computer, can see how much time is left for readiness in the kitchen.
I read your topic and I realized that this is very difficult for me. Could you write me a file so that it simply shows the values of my kitchen timer in the browser, which is made in ESPEASY?
Just: "XX min XX sec", maybe add another button "stop".
Minutes and seconds, these are the values of Dummy Device: [DI#M] and [DI#S].
This is necessary so that my wife, when working at the computer, can see how much time is left for readiness in the kitchen.
Andy.
Re: maybe easier to use Dashboard replacement
Hi Andrew,
sorry for answering so late. (I was really sick for a long time and i now start to recover.)
Regarding you question:
Since you store minutes and seconds separately you could name the dummy device "bigVal" instead of "DI" and then the numbers will be displayed next to each other.
A button you can create by adding either a "Switch" device and call it "button" or whatever you want (create it without assigning a gpio) or create a single "dummy" device called "dButtons". and name the value (eg "button" or whatever you want ). Both ways will create a button tile. If you click on this tile it will create an event called (assuming you named the button "button" ) "buttonEvent". This event you can use then in rules:
Example:
Edit:
The interval of easyfetch is two seconds so it will refresh the displayed value only every two seconds. Refreshing the display every second is possible with simply changing the value in the code but could lead to issues in terms of responsiveness of ESPeasy if your device is constantly under heavy load.
sorry for answering so late. (I was really sick for a long time and i now start to recover.)
Regarding you question:
Since you store minutes and seconds separately you could name the dummy device "bigVal" instead of "DI" and then the numbers will be displayed next to each other.
A button you can create by adding either a "Switch" device and call it "button" or whatever you want (create it without assigning a gpio) or create a single "dummy" device called "dButtons". and name the value (eg "button" or whatever you want ). Both ways will create a button tile. If you click on this tile it will create an event called (assuming you named the button "button" ) "buttonEvent". This event you can use then in rules:
Code: Select all
On buttonEvent Do
//put your code to reset the timer in here
Endon
The interval of easyfetch is two seconds so it will refresh the displayed value only every two seconds. Refreshing the display every second is possible with simply changing the value in the code but could lead to issues in terms of responsiveness of ESPeasy if your device is constantly under heavy load.
- Andrew Mamohin
- Normal user
- Posts: 95
- Joined: 12 Jun 2020, 08:30
- Location: Belarus, Gomel
- Contact:
Re: maybe easier to use Dashboard replacement
Unfortunately, I can't figure out how I can change this for myself...
Here is my screen fetch.html.gz.
How can I remove unnecessary elements, and display the necessary elements with the necessary description?
- Attachments
-
- CkprBKAXKF.jpg (28.12 KiB) Viewed 37357 times
Andy.
Re: maybe easier to use Dashboard replacement
Add an XX the the Device name of Elements you don´t want do display: e.g. "KEY1XX" but keep in mind that you have to change this name everywhere else too... (e.g. in rules).Andrew Mamohin wrote: ↑20 Feb 2023, 12:17 How can I remove unnecessary elements, and display the necessary elements with the necessary description?
Than change "DI" to "bigVal" or anything that includes "bigVal" like "bigVal_DI".
This is also explained in the readme here: https://github.com/chromoxdor/easyfetch
Edit: or try only to change the name of "DI" to "bigVal" and see what happens... maybe the other values do not necessarily to be hidden..
And change the number of decimals to 0 for minutes.
Edit2: Unfortunately there is no other way than adding "XX" for hiding devices in easyfetch since the whole thing was written to be "non invasive" to ESPeasy to not add more code and complexity to it. But maybe in the future a checkbox for hiding a tile in the devices settings would be nice.
Re: maybe easier to use Dashboard replacement
If you create a button you can assign a background color for visual feedback depending of the value of the task. If you give it the value 2 it becomes a red tile.chromo23 wrote: ↑20 Feb 2023, 11:42 A button you can create by adding either a "Switch" device and call it "button" or whatever you want (create it without assigning a gpio) or create a single "dummy" device called "dButtons". and name the value (eg "button" or whatever you want ). Both ways will create a button tile.
With this you could easily create a blinking tile by alternating the button value from 0 to 2
Rules for that could look like this:
Code: Select all
On timefinished Do
LoopTimerSet,1,2000
Endon
On Rules#Timer=1 Do
If [button#State]=0
TaskValueSet,button,1,2
Else
TaskValueSet,button,1,0
Endif
Endon
Re: maybe easier to use Dashboard replacement
beautiful project, thank you!!! I just tried and the software button (Switch Input) doesn't work for me when 'Inversed Logic' is ticked.
Re: maybe easier to use Dashboard replacement
Thanks
This should do the trick:
Re: maybe easier to use Dashboard replacement
Re: maybe easier to use Dashboard replacement
Hi! Is it possible to lock somehow the vSlider? Like long press to make modification or a requirement to press an unlock icon first.... Or maybe a form where user can type a number instead? To save a variable into a dummy device. Just some ideas.
It's quite easy to press the slider accidentally while forget what was the previous setting
Thanks!!!!!!
It's quite easy to press the slider accidentally while forget what was the previous setting
Thanks!!!!!!
Re: maybe easier to use Dashboard replacement
Thanks for your suggestions!
This reminds me again, that i should renew the documentation....i really suck at that.
Instead of doing so i startet another project ...sneak peek: https://github.com/chromoxdor/easy2ntfy
https://www.letscontrolit.com/forum/vie ... 886#p61886
Edit: i forgot to mention another functionality of the slider.
If you change the slider value it changes the value in the dummy-device with "taskValueSet" and it also send an extra "event"
e.g.: "taskvalueset,vSlider,1,1023" and "event,slider1Event=1023"
If you just click on the "outer edges" of the slider the event now sends two values (2nd one accessible via "%eventvalue2%") depending on the side of the slider.
e.g. clicking on the left side: "event,slider1Event=0,0"
right side: "event,slider1Event=1023,1"
I don´t know if this helps. I only added this functionality because i needed it for a very special use case...
This reminds me again, that i should renew the documentation....i really suck at that.
Instead of doing so i startet another project ...sneak peek: https://github.com/chromoxdor/easy2ntfy
For this i already have a solution:
https://www.letscontrolit.com/forum/dow ... hp?id=7450
No, it´s currently not. And right now i see no reason to do so (since it can be done with rules). There is another way to "lock" a slider by disabling it. See here:
https://www.letscontrolit.com/forum/vie ... 886#p61886
Edit: i forgot to mention another functionality of the slider.
If you change the slider value it changes the value in the dummy-device with "taskValueSet" and it also send an extra "event"
e.g.: "taskvalueset,vSlider,1,1023" and "event,slider1Event=1023"
If you just click on the "outer edges" of the slider the event now sends two values (2nd one accessible via "%eventvalue2%") depending on the side of the slider.
e.g. clicking on the left side: "event,slider1Event=0,0"
right side: "event,slider1Event=1023,1"
I don´t know if this helps. I only added this functionality because i needed it for a very special use case...
Re: maybe easier to use Dashboard replacement
chromo23 wrote: ↑28 Feb 2023, 09:00 Thanks for your suggestions!
This reminds me again, that i should renew the documentation....i really suck at that.
Instead of doing so i startet another project ...sneak peek: https://github.com/chromoxdor/easy2ntfy
For this i already have a solution:download/file.php?id=7450
No, it´s currently not. And right now i see no reason to do so (since it can be done with rules). There is another way to "lock" a slider by disabling it. See here:
viewtopic.php?p=61886#p61886
Edit: i forgot to mention another functionality of the slider.
If you change the slider value it changes the value in the dummy-device with "taskValueSet" and it also send an extra "event"
e.g.: "taskvalueset,vSlider,1,1023" and "event,slider1Event=1023"
If you just click on the "outer edges" of the slider the event now sends two values (2nd one accessible via "%eventvalue2%") depending on the side of the slider.
e.g. clicking on the left side: "event,slider1Event=0,0"
right side: "event,slider1Event=1023,1"
I don´t know if this helps. I only added this functionality because i needed it for a very special use case...
easy2ntfy looks good, I'll have a look on this later too! Previously I used notifymydevice urls, but it's slow, and sometimes an alert push notification arrives hours later. This is not good when a boiler is about to explode
vInput is perfect,. exactly what I was thinking about! Works better for my case than vSlider.
Got few more questions, if you don't mind:
- your screenshots with that dark colorscheme/theme looks good. Can I use that somehow?
- I created a triple bigValC dummy device so I have a 3 column layout in Laptop and Tablet. But in the phone it's 2 columns and the first bigVal tile is a bigger tile in the left side. I like that, can I force this view in the laptop and tablet too?
Thanks a lot!
Re: maybe easier to use Dashboard replacement
The Dark mode is a setting in the Tools/Advanced page ("Web light/dark mode" selection option), if it is included in the build. (Excluded in LIMIT_BUILD_SIZE builds, like Collection A..F, Display, Neopixel)
/Ton (PayPal.me)
Re: maybe easier to use Dashboard replacement
Yes I already tried that, but onyl espeasy's web gui changes to dark theme then, your easy fetch stays light.
Re: maybe easier to use Dashboard replacement
Easyfetch probably uses the browser or OS setting for dark mode.
/Ton (PayPal.me)
Re: maybe easier to use Dashboard replacement
Thanks.. i actually don´t know if the software for the gateway works. It´s also (for now) for esp8266 only.
I couldn´t test recent changes since i took no hardware with me and already getting withdrawal symptoms...
More information about this will follow as soon as i am home but for now don´t expect too much of it.
Note, that "easy2ntfy" is not for notifications. It is a combination of hardware and software that enables you to use "easyfetch" through the internet without using a vpn.
!It will NOT notify you when your boiler is about to explode!
(But therefore you could use "PostToHttp" and send messages to e.g. ntfy...)
@ath gave you already an advice. Does it work for you with changing the system settings? Otherwise i could give you a version with "dark mode only" in a few days if you prefer to use this independently from your system settings.
No, this is not possible. But i also could put this in a special version too if you want. (But note, that it will be the two-column-mobile view only then.)
EDIT: I think i can later add an option to force the two-column-view in desktop mode
Re: maybe easier to use Dashboard replacement
Thanks.. i actually don´t know if the software for the gateway works. It´s also (for now) for esp8266 only.
I couldn´t test recent changes since i took no hardware with me and already getting withdrawal symptoms...
More information about this will follow as soon as i am home but for now don´t expect too much of it.
Ah okey, I checked only ntfy, but that thing will be good for me I think.Note, that "easy2ntfy" is not for notifications. It is a combination of hardware and software that enables you to use "easyfetch" through the internet without using a vpn.
!It will NOT notify you when your boiler is about to explode!
(But therefore you could use "PostToHttp" and send messages to e.g. ntfy...)
Yes it works, I changed the theme to dark in Brave and easyfetch changed to dark mode too. I like it.@ath gave you already an advice. Does it work for you with changing the system settings? Otherwise i could give you a version with "dark mode only" in a few days if you prefer to use this independently from your system settings.
Don't bother with any special version for me, it's such a small thing. If you add it to the new version, I'll be happy to use that though.No, this is not possible. But i also could put this in a special version too if you want. (But note, that it will be the two-column-mobile view only then.)
EDIT: I think i can later add an option to force the two-column-view in desktop mode
Thanks a lot!
Re: maybe easier to use Dashboard replacement
I updated easyfetch for you.. took a while
- You can now force the "2row-view" by long pressing the "i" button (it sets a cookie) Disable it with long pressing the button again.
- Long pressing the "node-list" button en- /disables the "sorted view" (button tiles are rendered before anything else despite the position in the devices list).
- Leaving the page without closing it immediately stops gathering data from the ESPeasy device.
Have fun
Re: maybe easier to use Dashboard replacement
wow this is awesome! Thanks a bunch!
Re: maybe easier to use Dashboard replacement
I added a "color-scheme inverting" option by long pressing the "unit name"
It is maybe useful for people that use static a color-scheme that they don´t want to change only to get another color-scheme in easyfetch.
It is maybe useful for people that use static a color-scheme that they don´t want to change only to get another color-scheme in easyfetch.
Re: maybe easier to use Dashboard replacement
You might consider adding an options menu with all these special 'long press' etc. features, as it's getting hard to remember all of them...
/Ton (PayPal.me)
Re: maybe easier to use Dashboard replacement
The reason i reuse elements for extra features is, that it keeps the file smaller since i also can reuse some of the code.
But you are right and is has definitely not become easier as stated in the title. (I mean to my defense, it is quite easy to use if you use it just as a simple dashboard visualizing only data )
Maybe also helpful: This weekend i plan to update the documentation. (I hope the weather stays shitty)
Edit:
I would love to add some extra menus and a lot more functionality. But this would mean that i would maintain an extra version of easyfetch since i still rely on a small version for 1M units. But i am already not able to keep up with the documentation and updates. So adding extra work is unfortunately not possible right now and probably not in the future
Re: maybe easier to use Dashboard replacement
I've used the "/control?cmd=even, eventname" for the longest time and was annoyed that i only get an "Ok" string back.
Finalled configured everything correctly so it works for my door.
modified the:
so that whenever i Open the page it automatically does send a Signal, so no more need for another button pushed.
As i use pulse and not open or close commands it doesn't really matter if it's 0 or 1.
But there is just one downside to this. As i have a reed/magnet sensor it only switches when the door is fully open, which takes about 10 seconds.
So i'm just sitting there, waiting, thinking "Yes yes it surely works" while walking down the stairs.
Now what do you think about my totally crazy feature request: A Tile that shows the last 3 lines from the Log.
Might actually not work that well as there is a 2 seconds refresh....... and there might be other stuff spaming the log during that duration....
Anyone else has a better idea than simple faith? ^^
Finalled configured everything correctly so it works for my door.
modified the:
Code: Select all
<body onload="fetchJson(),buttonClick('Tor', '0')">
Code: Select all
on Torevent do
pulse,4,1,800
endon
But there is just one downside to this. As i have a reed/magnet sensor it only switches when the door is fully open, which takes about 10 seconds.
So i'm just sitting there, waiting, thinking "Yes yes it surely works" while walking down the stairs.
Now what do you think about my totally crazy feature request: A Tile that shows the last 3 lines from the Log.
Might actually not work that well as there is a 2 seconds refresh....... and there might be other stuff spaming the log during that duration....
Anyone else has a better idea than simple faith? ^^
Re: maybe easier to use Dashboard replacement
I am not sure if easyfetch is the right application for you.
I would do this a different way.
For simple http requests is use "shortcuts" on IOS (there are similar apps for android like "HTTP Request Shortcuts")
(Additional infos to PostToHttp:
https://espeasy.readthedocs.io/en/lates ... l-commands
viewtopic.php?p=62781
)
If you still want to use easyfetch you could change the state of "Tor" to 1 with "TaskvalueSet" when the reed switch changes state. Then you´ll have a visual feedback as the button turns blue
Edit:
I would do this a different way.
For simple http requests is use "shortcuts" on IOS (there are similar apps for android like "HTTP Request Shortcuts")
Since ESPeasy features the "PostToHttp" command you could send a notification to your phone via ntfy when the reed switch changes state
(Additional infos to PostToHttp:
https://espeasy.readthedocs.io/en/lates ... l-commands
viewtopic.php?p=62781
)
If you still want to use easyfetch you could change the state of "Tor" to 1 with "TaskvalueSet" when the reed switch changes state. Then you´ll have a visual feedback as the button turns blue
Edit:
That's one of the reasons this request is deniedMight actually not work that well as there is a 2 seconds refresh....... and there might be other stuff spaming the log during that duration....
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest