Search found 19 matches

by Hansh
Thursday 07 March 2024 12:23
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

I did something wrong (as usually) because this is the output I get python3 WeatherAlert.py 2024-03-07 11:31:31: INFO : <module> : 92 : ==================================================== 2024-03-07 11:31:31: INFO : <module> : 93 : ================== Script started ================== 2024-03-07 11 ...
by Hansh
Thursday 07 March 2024 9:46
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

I have continued to improve my script from my Jan 4, 2024 post. A number of changes and improvements made include: - the time period of the warning is now also visible - the script runs in an infinite loop and does not need to be started periodically - A KNMI file is only downloaded if a new file is ...
by Hansh
Monday 22 January 2024 20:14
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

It may be true that you do not see any text. First, I see from your screenshot that you used a text device to pass on the warnings. The script assumes that a "general Alert" device has been created. You will then also see a colored triangle, green, yellow, orange or red respectively ...
by Hansh
Thursday 04 January 2024 13:33
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

Yeh i make it run :lol: :lol: After a lot of fiddling around how to read an XML file (I had no knowledge of it at all), I managed to read and parse the data from the weather warning file. The problem was to only extract the data that was relevant for a province and not the data for the entire ...
by Hansh
Wednesday 27 December 2023 16:02
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

Found some time to work on the weather warnings. In my previous post I showed a script that downloads a text file from the KNMI data platform with the latest weather warning. After some searching I discovered that this text was extracted from the xml file from the same dataset. I can also do what ...
by Hansh
Sunday 24 December 2023 10:37
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

Still found some time to get started with the code that Chat gpt provided. As is often the case, it is of no use to you, but it does put you on the track. :D Found an example on the site https://developer.dataplatform.knmi.nl/open-data-api# that retrieves the last file of the warning dataset. This ...
by Hansh
Friday 22 December 2023 20:23
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

asked the next question in chat gpt Write a python script to retrieve the weather warning for South Holland from the KNMI data platform api.dataplatform.knmi.nl the answer was Of course, here's an example of how you can do that using Python and the `requests` library to retrieve data from the KNMI ...
by Hansh
Tuesday 01 August 2023 14:46
Forum: Temperature and Weather
Topic: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)
Replies: 38
Views: 27304

Re: Weather alarm from Royal Netherlands Meteorological Institute (KNMI)

hello fire wizard Your script runs in blocks. I'm a bigger fan of dzvents for a variety of reasons. The script you made inspired me to achieve the same result in dzvents. I've created a new topic to avoid confusion "KNMI weather alert with dzvents" Of course I mentioned you as the source regards ...
by Hansh
Tuesday 01 August 2023 14:44
Forum: Temperature and Weather
Topic: KNMI weeralert with dzvents
Replies: 0
Views: 1038

KNMI weeralert with dzvents

Inspired by the block script from FireWizard I made a script in dzvents to bring the weather alarm from the KNMI to domoticz You can request the local weather from KNMI via an API, see https://weerlive.nl/delen.php All data is very usable and on this forum you can find scripts that process the data ...
by Hansh
Tuesday 09 May 2023 9:54
Forum: Other questions and discussions
Topic: soliscloud_to_domoticz
Replies: 6
Views: 1165

Re: soliscloud_to_domoticz

To manage the log files that are created I have created a logrotate file. The purpose of this is to archive the log fole solis.log daily and keep it for a maximum of 7 days. For the file solis.crontab.log this is monthly with a month retention To make the logrotate work you can do the following ...
by Hansh
Friday 05 May 2023 12:09
Forum: Other questions and discussions
Topic: soliscloud_to_domoticz
Replies: 6
Views: 1165

soliscloud_to_domoticz

Solis has decided to discontinue the m.ginlong.com site. I always used this site to retrieve my data for domoticz via an API. Now that this site is going to disappear, I had to look for another method to retrieve my desired data. Solis has started a new site called soliscloud. You can also retrieve ...
by Hansh
Tuesday 31 August 2021 10:41
Forum: dzVents
Topic: unexpected behavior managed counter
Replies: 8
Views: 749

Re: unexpected behavior managed counter

Reading my post the following thought came to mind; maybe the problem can be avoided by not executing the whole script between sunset and sunrise by adjusting the trigger with: timer = {'every 5 minutes between sunrise and sunset'}, If this prevents the problem, then we know a little more where to ...
by Hansh
Tuesday 31 August 2021 10:20
Forum: dzVents
Topic: unexpected behavior managed counter
Replies: 8
Views: 749

Re: unexpected behavior managed counter

@Toulon7559 I have read the commented thread. I got a lot of inspiration and code from this thread to make my script The inverter used is a solis-S5 mini 700W Below my script a lot of inspiration and code examples are taken from the internet a little explanation It is intended that when the solar ...
by Hansh
Monday 30 August 2021 9:59
Forum: dzVents
Topic: unexpected behavior managed counter
Replies: 8
Views: 749

Re: unexpected behavior managed counter

Thanks again for the response I've been playing around with electricity for a while. Basically it does what I want. Only the daily yield is a problem. The data that I collect once every 5 min only contains the daily yield (besides a lot more info) and not the total yield. Now, of course, I can ...
by Hansh
Saturday 28 August 2021 13:25
Forum: dzVents
Topic: unexpected behavior managed counter
Replies: 8
Views: 749

Re: unexpected behavior managed counter

@waltervl thanks for your reaction I use a managed counter because it can be adjusted to your own liking. I'll give the Electricity one a try. The problem is that the div wiki of domoticz give different explanations https://www.domoticz.com/wiki/Dummy_for_virtual_Switches#Electricity_.28instant_and ...
by Hansh
Saturday 28 August 2021 11:49
Forum: dzVents
Topic: unexpected behavior managed counter
Replies: 8
Views: 749

unexpected behavior managed counter

I am busy reading the data from my solis inverter and saving it in Domoticz. I use a script in dzventz for this. I'm so far that I can read that correctly, only processing in a managed counter does not give the desired result. Even after several searches on the internet I have not come up with a ...
by Hansh
Wednesday 29 July 2020 15:22
Forum: dzVents
Topic: domoticz.utils.osExecute problem [Solved]
Replies: 3
Views: 656

Re: domoticz.utils.osExecute problem [Solved]

@ waaren

This was the problem. After I created an ssh keypair for the root, the script worked perfectly.

Thanks again for the help

gr Hans
by Hansh
Monday 27 July 2020 23:06
Forum: dzVents
Topic: domoticz.utils.osExecute problem [Solved]
Replies: 3
Views: 656

Re: domoticz.utils.osExecute problem [Solved]

Thanks for the reply Is domoticz executed by user pi? If not did you test with the same user? A quick scan shows that domoticz was indeed started by user root. htop.jpg I'm going to work on this. When I know a bit more I will let you know. I had not yet thought of this possibility. mvg Hans
by Hansh
Monday 27 July 2020 15:02
Forum: dzVents
Topic: domoticz.utils.osExecute problem [Solved]
Replies: 3
Views: 656

domoticz.utils.osExecute problem [Solved]

Hi there, I am making a script. The intention is that when the switch goes off, it first stops another raspberry in the network. and then turn off another switch about 30 sec later. In itself a fairly simple script. The problem lies in controlling the other raspberry. the raspberry where domoticz ...