feature request: Open Weather Map select data

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

feature request: Open Weather Map select data

Post by azonneveld »

I'm using the OWM hardware for detecting expected rain and wind speeds (to close sunscreens if the weather turns bad).
This works fine, but the system is collecting a ton of data, and also it creates lots of devices.
The amount of data makes the database huge and slows down my system.

I would like to have an option to select which data is collected (f.i. only wind speed and rain for the next hour).

Could this be implemented?
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: feature request: Open Weather Map select data

Post by HvdW »

Don't worry, your RPI can handle all this information with ease.
To have an idea how hard your RPI needs to work execute htop from the SSH connection.
Old Domoticz data are being deleted constantly to avoid cumulation of data. (cannot retrieve rigth now where it is explained)
If you worry about the growth of the database checkout this Domoticz Wiki page.
Change the bash script like this.

Code: Select all

#!/bin/bash
#Retrieve memory usage of the system in percentage
#MEMUSG=`free -m|grep "Mem"|awk '{print $3/($4+$3) * 100}'`
DISKUSG= `df -ht ext4 | tail -1 |awk '{ print substr($5, 1, length($5)-1) }'`
#save memory usage to domoticz, replace with you IP, Portnumber and IDX
#OUTPUT=`curl "http://192.168.1.3:8080/json.htm?type=command&param=udevice&idx=59&nvalue=0&svalue=$MEMUSG"`
OUTPUT=`curl "http://192.168.1.3:8080/json.htm?type=command&param=udevice&idx=59&nvalue=0&svalue=$DISKUSG"`
Last edited by HvdW on Monday 20 May 2024 0:04, edited 1 time in total.
Bugs bug me.
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: feature request: Open Weather Map select data

Post by azonneveld »

HvdW wrote: Sunday 19 May 2024 23:29 Don't worry, your RPI can handle all this information with ease.
To have an idea how hard your RPI needs to work execute htop from the SSH connection.
Old Domoticz data are being deleted constantly to avoid cumulation of data. (cannot retrieve rigth now where it is explained)
If you worry about the growth of the database checkout this Domoticz Wiki page.
Regardless of the performance issue: don't store/use data which is not needed, it is a waste of a, b, c, etc
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: feature request: Open Weather Map select data

Post by HvdW »

azonneveld wrote: Sunday 19 May 2024 23:54 Regardless of the performance issue: don't store/use data which is not needed, it is a waste of a, b, c, etc
In that case maybe Buienradar plugin collects less data.
It shows you (amongst others) Is it raining, Possible rain, Sunpower and Wind and has a total of 16 sensors.
But even then: Times of Pentium processors and 128G harddisks are over.

Maybe weerlive gives you the information you need.
weerlive-uur.jpg
weerlive-uur.jpg (83.28 KiB) Viewed 795 times
For scripts search keyword weerlive and author waaren or author janpep
Bugs bug me.
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: feature request: Open Weather Map select data

Post by azonneveld »

I tried weeronline, but it is not accurate (enough).

Anyway, I already build my own OWM implementation.

This topic can be closed.
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: feature request: Open Weather Map select data

Post by Jan Jansen »

I stopped using OMW. At my location, Visual Crossing uses the same local station as OMW. For my other wishes I use the janpep script
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests