Hello, I'm a little further now:
return {
on = {
timer = {"at 00:02", "at *:03"},
httpResponses = {"Energyzero"}
},
data = {
dayprices = { history = true, maxItems = 24 }
},
logging = {
level = domoticz.LOG_DEBUG, -- set to LOG_ERROR when script works as expected
marker = Energyzero ...
Search found 9 matches
- Friday 25 November 2022 21:54
- Forum: dzVents
- Topic: How to save data from JSON
- Replies: 10
- Views: 1862
- Wednesday 23 November 2022 18:47
- Forum: dzVents
- Topic: How to save data from JSON
- Replies: 10
- Views: 1862
Re: How to save data from JSON
Hey nice! I have similar plans for the future. I also want to shutdown my solar system if prices are negative and I have my battery full. Future idea, I have no battery yet.
My code so far:
return {
on = {
timer = {"at 00:03"},
httpResponses = {"Energyzero"}
},
data = {
dayprices ...
My code so far:
return {
on = {
timer = {"at 00:03"},
httpResponses = {"Energyzero"}
},
data = {
dayprices ...
- Tuesday 22 November 2022 18:34
- Forum: dzVents
- Topic: How to save data from JSON
- Replies: 10
- Views: 1862
Re: How to save data from JSON
Why would you want to save the JSON? Why not parsing it and storing only the values you want (price?)?
You can also just store the string if you want/have to parse it later.
What I like to build is, once a day, in this case every day at 15:00 new prices of electricity come out for the day ahead ...
- Tuesday 22 November 2022 18:18
- Forum: dzVents
- Topic: How to save data from JSON
- Replies: 10
- Views: 1862
Re: How to save data from JSON
Thanks wil take look at it!waltervl wrote: Monday 21 November 2022 9:30 Here you have an example to save prices from a Json into devices. viewtopic.php?t=30004
Later you can do some statistics on this.
- Sunday 20 November 2022 21:20
- Forum: dzVents
- Topic: How to save data from JSON
- Replies: 10
- Views: 1862
How to save data from JSON
Hello everyone i want to save a JSON tabel in "data" of DzVents
data = {
historycalprices = { history = true, maxItems = 24 }
},
The JSON I want to save is this, only the "prices" object with price in the fist blok en the readingDate in the second
{
"Prices": [
{
"price": 0.22 ...
data = {
historycalprices = { history = true, maxItems = 24 }
},
The JSON I want to save is this, only the "prices" object with price in the fist blok en the readingDate in the second
{
"Prices": [
{
"price": 0.22 ...
- Sunday 25 September 2022 12:17
- Forum: Bugs
- Topic: counter value of virtual gas device incorrectly set to 0
- Replies: 6
- Views: 3453
Re: counter value of virtual gas device incorrectly set to 0
Hello Willemd,
I think I have the same kind of issue on a electric counter (instant + counter) I created al script that's calculating my real usage during a day, after midnight it doing something wird, de total amount of the day before wil picked up en used tot zet it to a minus amount of usage in ...
I think I have the same kind of issue on a electric counter (instant + counter) I created al script that's calculating my real usage during a day, after midnight it doing something wird, de total amount of the day before wil picked up en used tot zet it to a minus amount of usage in ...
- Friday 25 September 2020 23:04
- Forum: Python
- Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
- Replies: 951
- Views: 187468
Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
HI!
I have the plugin updated tot 0.9.6 en PyCoap to 0.9.0 now I have the following error:
(Domoticz Version: Version: 2020.2 Build Hash: b63341bc0)
Can someone explain this?
Lights wil switch on, but it takes about 5 to 10 seconds to switch them on.
2020-09-25 23:00:43.127 Error: (IKEA ...
I have the plugin updated tot 0.9.6 en PyCoap to 0.9.0 now I have the following error:
(Domoticz Version: Version: 2020.2 Build Hash: b63341bc0)
Can someone explain this?
Lights wil switch on, but it takes about 5 to 10 seconds to switch them on.
2020-09-25 23:00:43.127 Error: (IKEA ...
- Saturday 18 April 2020 21:05
- Forum: Python
- Topic: Python Plugin: Growatt Inverter
- Replies: 107
- Views: 25971
Re: Python Plugin: Growatt Inverter
SValue?? doest that exist? The rest says sValue.
That was an issue, thanks!
sValue=str(current)+";"+str( float(total)*1000 )+";"+str(totalmonth)
The above doesn't work indeed, I made it back to original. (see below) Is there an easy way to get the "month total" in a device?
sValue=str ...
That was an issue, thanks!
sValue=str(current)+";"+str( float(total)*1000 )+";"+str(totalmonth)
The above doesn't work indeed, I made it back to original. (see below) Is there an easy way to get the "month total" in a device?
sValue=str ...
- Saturday 18 April 2020 19:09
- Forum: Python
- Topic: Python Plugin: Growatt Inverter
- Replies: 107
- Views: 25971
Re: Python Plugin: Growatt Inverter
@Sincze, Is it possible to retrieve the "month total"? I'm trying to edit the plugin.py but im stuc on the Device. I edit following pice of code
elif ('powerValue' in apiResponse):
current = apiResponse['powerValue']
total = apiResponse['totalValue']
totalmonth = apiResponse['monthValue ...
elif ('powerValue' in apiResponse):
current = apiResponse['powerValue']
total = apiResponse['totalValue']
totalmonth = apiResponse['monthValue ...