maybe easier to use Dashboard replacement

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
ciberyan
New user
Posts: 9
Joined: 18 Mar 2019, 22:58
Location: Paris, FRANCE

Re: maybe easier to use Dashboard replacement

#151 Post by ciberyan » 21 Jan 2023, 09:15

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 :lol:
Versionning can be just a time stamp for example
keep the good job running easy

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#152 Post by chromo23 » 21 Jan 2023, 17:53

Thank you for the nice words and I really appreciate that! :)
ciberyan wrote: 21 Jan 2023, 09:15 Versionning can be just a time stamp for example
For the versioning i now use the date as suggested. It appears when you hover over the info button.
TD-er wrote: 20 Jan 2023, 11:53 On the other hand it may help to put at least a few ideas in writing, so there is some backlog of intentions for others to read.
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!

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#153 Post by chromo23 » 24 Jan 2023, 19:11

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:
pButton1.gif
pButton1.gif (401.4 KiB) Viewed 23328 times
pButton2.gif
pButton2.gif (386.04 KiB) Viewed 23328 times
Last edited by chromo23 on 24 Jan 2023, 21:41, edited 1 time in total.

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#154 Post by chromo23 » 24 Jan 2023, 20:06

8-)
directions.png
directions.png (22.75 KiB) Viewed 23322 times
pbuttonsettings.png
pbuttonsettings.png (34.68 KiB) Viewed 23322 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: maybe easier to use Dashboard replacement

#155 Post by TD-er » 24 Jan 2023, 21:35

Very nice!

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#156 Post by chromo23 » 25 Jan 2023, 14:05

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 :roll: 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>
neoevent.png
neoevent.png (15.18 KiB) Viewed 23290 times
neogif.gif
neogif.gif (1.3 MiB) Viewed 23290 times
Edit: Code Example:

Code: Select all

On neoPixelEvent Do
  NeoPixelAllHSV,%eventvalue1%,%eventvalue2%,%eventvalue3%
Endon

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: maybe easier to use Dashboard replacement

#157 Post by Ath » 25 Jan 2023, 14:12

That looks great!

Do you also have support for RGB sliders? (I'm not up to date with all EasyFetch features, sorry)
/Ton (PayPal.me)

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#158 Post by chromo23 » 25 Jan 2023, 14:27

Ath wrote: 25 Jan 2023, 14:12 Do you also have support for RGB sliders? (I'm not up to date with all EasyFetch features, sorry)
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... :o
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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: maybe easier to use Dashboard replacement

#159 Post by TD-er » 25 Jan 2023, 14:33

It should only be a very simple matrix multiplication to get from one color space to the other.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: maybe easier to use Dashboard replacement

#160 Post by Ath » 25 Jan 2023, 15:12

chromo23 wrote: 25 Jan 2023, 14:27
Ath wrote: 25 Jan 2023, 14:12 Do you also have support for RGB sliders? (I'm not up to date with all EasyFetch features, sorry)
No, sorry...
I thought HSV (or HSL) is much more common for these kind of slider that´s why i did it.
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).
chromo23 wrote: 25 Jan 2023, 14:27 I only have space for one kind of slider with my freshly self imposed feature freeze... :o
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.
Don't lift that code-freeze just for this, please ;)
/Ton (PayPal.me)

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#161 Post by chromo23 » 26 Jan 2023, 10:04

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!

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: maybe easier to use Dashboard replacement

#162 Post by TD-er » 26 Jan 2023, 11:08

Can't have freezes with the current energy prices...

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#163 Post by chromo23 » 26 Jan 2023, 11:35

TD-er wrote: 26 Jan 2023, 11:08 Can't have freezes with the current energy prices...
Absolutely! But i am thinking to re add this "feature" in the summer where one can plaster the walls with microcontroller, saving the AC.

User avatar
Andrew Mamohin
Normal user
Posts: 95
Joined: 12 Jun 2020, 08:30
Location: Belarus, Gomel
Contact:

Re: maybe easier to use Dashboard replacement

#164 Post by Andrew Mamohin » 03 Feb 2023, 16:35

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.
Andy.

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#165 Post by chromo23 » 20 Feb 2023, 11:42

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:

Code: Select all

On buttonEvent Do
	//put your code to reset the timer in here
Endon
Example:
Bildschirmfoto 2023-02-20 um 11.31.53.png
Bildschirmfoto 2023-02-20 um 11.31.53.png (26.03 KiB) Viewed 22915 times
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.

User avatar
Andrew Mamohin
Normal user
Posts: 95
Joined: 12 Jun 2020, 08:30
Location: Belarus, Gomel
Contact:

Re: maybe easier to use Dashboard replacement

#166 Post by Andrew Mamohin » 20 Feb 2023, 12:17

chromo23 wrote: 20 Feb 2023, 11:42 Regarding you question:
Unfortunately, I can't figure out how I can change this for myself...

Image

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
CkprBKAXKF.jpg (28.12 KiB) Viewed 22904 times
Andy.

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#167 Post by chromo23 » 20 Feb 2023, 12:27

Andrew Mamohin wrote: 20 Feb 2023, 12:17 How can I remove unnecessary elements, and display the necessary elements with the necessary description?
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).
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. ;)

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#168 Post by chromo23 » 20 Feb 2023, 12:58

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.
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.
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
Bildschirmfoto 2023-02-20 um 12.50.34.png
Bildschirmfoto 2023-02-20 um 12.50.34.png (19.52 KiB) Viewed 22887 times
Edit: it´s blinking every 2 second so probably not the best indicator. but i think i will add a real blinking functionality to buttons (e.g. value=3 means blink in blue and value=4 means blink in red)

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#169 Post by trendkill » 25 Feb 2023, 18:44

beautiful project, thank you!!! I just tried and the software button (Switch Input) doesn't work for me when 'Inversed Logic' is ticked.

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#170 Post by chromo23 » 25 Feb 2023, 22:23

trendkill wrote: 25 Feb 2023, 18:44 beautiful project, thank you!!! I just tried and the software button (Switch Input) doesn't work for me when 'Inversed Logic' is ticked.
Thanks :)

This should do the trick:
chromo23 wrote: 13 Dec 2022, 12:37 (if "Inversed Logic:" is set the value-name needs to be changed from "State" to "iState")
if you have an old build use "btnState" + ? + "gpio Number" instead (e.g. btnState?12)

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#171 Post by trendkill » 25 Feb 2023, 22:29

chromo23 wrote: 25 Feb 2023, 22:23
trendkill wrote: 25 Feb 2023, 18:44 beautiful project, thank you!!! I just tried and the software button (Switch Input) doesn't work for me when 'Inversed Logic' is ticked.
Thanks :)

This should do the trick:
chromo23 wrote: 13 Dec 2022, 12:37 (if "Inversed Logic:" is set the value-name needs to be changed from "State" to "iState")
if you have an old build use "btnState" + ? + "gpio Number" instead (e.g. btnState?12)
Works perfectly!!! Thank you very much, I'll use this A LOT! :)

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#172 Post by trendkill » 28 Feb 2023, 00:13

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!!!!!!

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#173 Post by chromo23 » 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 :roll: ...sneak peek: https://github.com/chromoxdor/easy2ntfy :)
trendkill wrote: 28 Feb 2023, 00:13 Or maybe a form where user can type a number instead?
For this i already have a solution:
chromo23 wrote: 13 Dec 2022, 12:37- number input (name a dummy-device "vInput"), enter a number and confirm with "enter" or "click" on the upper part of the tile
https://www.letscontrolit.com/forum/dow ... hp?id=7450
trendkill wrote: 28 Feb 2023, 00:13 Is it possible to lock somehow the vSlider?
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...

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#174 Post by trendkill » 03 Mar 2023, 11:22

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 :roll: ...sneak peek: https://github.com/chromoxdor/easy2ntfy :)
trendkill wrote: 28 Feb 2023, 00:13 Or maybe a form where user can type a number instead?
For this i already have a solution:
chromo23 wrote: 13 Dec 2022, 12:37- number input (name a dummy-device "vInput"), enter a number and confirm with "enter" or "click" on the upper part of the tile
download/file.php?id=7450
trendkill wrote: 28 Feb 2023, 00:13 Is it possible to lock somehow the vSlider?
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 :D

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!

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: maybe easier to use Dashboard replacement

#175 Post by Ath » 03 Mar 2023, 14:25

trendkill wrote: 03 Mar 2023, 11:22 - your screenshots with that dark colorscheme/theme looks good. Can I use that somehow?
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)

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#176 Post by trendkill » 03 Mar 2023, 14:31

Ath wrote: 03 Mar 2023, 14:25
trendkill wrote: 03 Mar 2023, 11:22 - your screenshots with that dark colorscheme/theme looks good. Can I use that somehow?
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)
Yes I already tried that, but onyl espeasy's web gui changes to dark theme then, your easy fetch stays light.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: maybe easier to use Dashboard replacement

#177 Post by Ath » 03 Mar 2023, 14:39

Easyfetch probably uses the browser or OS setting for dark mode.
/Ton (PayPal.me)

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#178 Post by trendkill » 03 Mar 2023, 20:33

Ath wrote: 03 Mar 2023, 14:39 Easyfetch probably uses the browser or OS setting for dark mode.
That's right! Thanks!

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#179 Post by chromo23 » 04 Mar 2023, 14:18

trendkill wrote: 03 Mar 2023, 11:22 easy2ntfy looks good, I'll have a look on this later too!
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... :shock:
More information about this will follow as soon as i am home but for now don´t expect too much of it.
trendkill wrote: 03 Mar 2023, 11:22 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
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...)
trendkill wrote: 03 Mar 2023, 11:22 - your screenshots with that dark colorscheme/theme looks good. Can I use that somehow?
@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.

trendkill wrote: 03 Mar 2023, 11:22 - 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?
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

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#180 Post by trendkill » 05 Mar 2023, 19:59

trendkill wrote: 03 Mar 2023, 11:22 easy2ntfy looks good, I'll have a look on this later too!
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... :shock:
More information about this will follow as soon as i am home but for now don´t expect too much of it.
trendkill wrote: 03 Mar 2023, 11:22 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
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...)
Ah okey, I checked only ntfy, but that thing will be good for me I think.
trendkill wrote: 03 Mar 2023, 11:22 - your screenshots with that dark colorscheme/theme looks good. Can I use that somehow?
@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.
Yes it works, I changed the theme to dark in Brave and easyfetch changed to dark mode too. I like it.

trendkill wrote: 03 Mar 2023, 11:22 - 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?
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
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.

Thanks a lot!

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#181 Post by chromo23 » 19 Apr 2023, 18:09

trendkill wrote: 03 Mar 2023, 11:22 - 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?
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.
sort_2row.gif
sort_2row.gif (274.65 KiB) Viewed 22171 times
Have fun :)

trendkill
Normal user
Posts: 26
Joined: 22 Feb 2022, 09:04

Re: maybe easier to use Dashboard replacement

#182 Post by trendkill » 19 Apr 2023, 22:14

wow this is awesome! Thanks a bunch!

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#183 Post by chromo23 » 20 Apr 2023, 10:27

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.
mode.gif
mode.gif (1.02 MiB) Viewed 22147 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: maybe easier to use Dashboard replacement

#184 Post by Ath » 20 Apr 2023, 12:50

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)

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#185 Post by chromo23 » 20 Apr 2023, 14:18

Ath wrote: 20 Apr 2023, 12:50 You might consider adding an options menu with all these special 'long press' etc. features,
The reason i reuse elements for extra features is, that it keeps the file smaller since i also can reuse some of the code.
Ath wrote: 20 Apr 2023, 12:50 as it's getting hard to remember all of them...
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 :D )
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

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#186 Post by chromo23 » 20 Apr 2023, 15:47

:)
easyfetch buttons small.png
easyfetch buttons small.png (143.48 KiB) Viewed 22112 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: maybe easier to use Dashboard replacement

#187 Post by Ath » 20 Apr 2023, 17:02

That's really helpful :)
/Ton (PayPal.me)

Haldi_2
Normal user
Posts: 53
Joined: 24 Aug 2020, 18:10

Re: maybe easier to use Dashboard replacement

#188 Post by Haldi_2 » 15 May 2023, 22:39

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.

Image

modified the:

Code: Select all

<body onload="fetchJson(),buttonClick('Tor', '0')">
so that whenever i Open the page it automatically does send a Signal, so no more need for another button pushed.

Code: Select all

on Torevent do
 pulse,4,1,800
endon
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? ^^

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: maybe easier to use Dashboard replacement

#189 Post by chromo23 » 16 May 2023, 09:15

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")
Haldi_2 wrote: 15 May 2023, 22:39 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.
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:
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....
That's one of the reasons this request is denied ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests