Giter Club home page Giter Club logo

Comments (90)

NightMan-1 avatar NightMan-1 commented on June 24, 2024 1

The new version is almost ready, I will publish it within 1-2 days ... completely redesigned the work logic, now all types of modules and several modules of the same type work fine, I'm testing :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024 1

thank you i will test -> first look, it looks good

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024 1

yes

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hello!

Sorry, i not have this modules and can not test it, please compile example app from here - https://github.com/exzz/netatmo-api-go - and post full output here, and i will try add more sensors..

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

okay thank you i will test it. if it helps.

Station : Pleasure Dome
Module : Outdoor
Temperature : %!s(float32=12.8) (1507874192)
Humidity : %!s(int32=76) (1507874192)
LastMesure : %!s(int64=1507874192) (1507874192)
Module : Niederschlagsmesser
Rain1Day : %!s(float32=0) (1507874205)
LastMesure : %!s(int64=1507874205) (1507874205)
Rain : %!s(float32=0) (1507874205)
Rain1Hour : %!s(float32=0) (1507874205)
Module : Indoor 1
Humidity : %!s(int32=71) (1507874198)
CO2 : %!s(int32=1288) (1507874198)
LastMesure : %!s(int64=1507874198) (1507874198)
Temperature : %!s(float32=19.4) (1507874198)
Module : Windmesser
LastMesure : %!s(int64=1507874109) (1507874109)
WindAngle : %!s(int32=28) (1507874109)
WindStrength : %!s(int32=1) (1507874109)
GustAngle : %!s(int32=28) (1507874109)
Module : Indoor
Noise : %!s(int32=34) (1507874213)
Pressure : %!s(float32=1022.3) (1507874213)
AbsolutePressure : %!s(float32=1006) (1507874213)
LastMesure : %!s(int64=1507874213) (1507874213)
Temperature : %!s(float32=20.8) (1507874213)
Humidity : %!s(int32=73) (1507874213)
CO2 : %!s(int32=1424) (1507874213)

about more indoor modules is a for or foreach available? so for each ModulName "Indoor*" or so on?

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

the second indoor work since i had copy your code to a second one
if (module.ModuleName == "Indoor 1"){
_, data := module.Data()
for dataType, value := range data {
//CO2 info
if (len(os.Args) == 2 && os.Args[1] == "-co2" && dataType == "CO2"){
fmt.Printf("co21.value %v\n", value)
//Humidity Indor info
}else if (len(os.Args) == 2 && os.Args[1] == "-hum" && dataType == "Humidity"){
fmt.Printf("hum_indor1.value %v\n", value)
//Temperature Indor info
}else if (len(os.Args) == 2 && os.Args[1] == "-temp" && dataType == "Temperature"){
fmt.Printf("temp_indor1.value %v\n", value)
}
}
}

and modify the munin printout....

is it a good idea then in the config is a possibility to set the numbers of indoor sensors an the name of this ones?

about the wind and rain sensors i have no idea to put it in :( so i cant help :(

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

For Rain_Sensor i had it:
@ help
++ fmt.Println("\t -rain - for Rain info")

@ plugin info
++ if (len(os.Args) == 3 && os.Args[1] == "-rain" && os.Args[2] == "config"){
++ fmt.Println("graph_title Netatmo Rain level")
++ fmt.Println("graph_vlabel mm")
++ fmt.Println("graph_category netatmo")
++ fmt.Println("rain_rain.label rain")
++ fmt.Println("rain_hour.label lasthour")
++ fmt.Println("rain_day.label lastday")
++ os.Exit(0)
++ }

@ output info
++ if (module.ModuleName == "Niederschlagsmesser"){
++ _, data := module.Data()
++ for dataType, value := range data {
++ //Rain Rain info
++ if (len(os.Args) == 2 && os.Args[1] == "-rain" && dataType == "Rain"){
++ fmt.Printf("rain_rain.value %v\n", value)
++ //Rain Last Hour info
++ }else if (len(os.Args) == 2 && os.Args[1] == "-rain" && dataType == "Rain1Hour"){
++ fmt.Printf("rain_hour.value %v\n", value)
++ //Rain Last Day info
++ }else if (len(os.Args) == 2 && os.Args[1] == "-rain" && dataType == "Rain1Day"){
++ fmt.Printf("rain_day.value %v\n", value)
++ }
++ }
++ }

->
rain_rain.value 0
rain_hour.value 0
rain_day.value 0

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hello!

New version uploaded, for update you must delete all /etc/munin/plugins/netatmo-munin-*.sh files and add only one link to netatmo-munin-plugin executable ... and old munin data will be lost, sorry for this

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

Hello,

i will test it as soon as possible. Thank you very much. i found some issues in the api modul so i write the api person about that.

  1. there is issue about gustwind (is missing by api)
  2. i had add a feature request there about device informations.

https://github.com/romainbureau/netatmo-api-go

in this fork api the wind problem is fixed (fyi)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

missing rain (ondemand) -> Rain : %!s(float32=0) (1507874205)
-> fix with:
fmt.Printf("rain_%v.label %v\n", key, value.name)
fmt.Printf("rain_%v.value %v\n", key, value.data)

multigraph netatmo_wind
missing wind angel -> WindAngle
missing wind gust angel -> GustAngle : %!s(int32=28) (1507874109)
missing wind gust speed -> bug by api

in V1 i had it do so....

RAIN:
if (module.ModuleName == "Niederschlagsmesser"){
_, data := module.Data()
for dataType, value := range data {
// fmt.Println(dataType, value)
//Rain Rain info
if (len(os.Args) == 2 && os.Args[1] == "-rain" && dataType == "Rain"){
fmt.Printf("rain_rain.value %v\n", value)
//Rain Last Hour info
}else if (len(os.Args) == 2 && os.Args[1] == "-rain" && dataType == "Rain1Hour"){
fmt.Printf("rain_hour.value %v\n", value)
//Rain Last Day info
}else if (len(os.Args) == 2 && os.Args[1] == "-rain" && dataType == "Rain1Day"){
fmt.Printf("rain_day.value %v\n", value)
}

Wind:
if (module.ModuleName == "Windmesser"){
_, data := module.Data()
for dataType, value := range data {
// fmt.Println(dataType, value)
//Wind Angel info
if (len(os.Args) == 2 && os.Args[1] == "-wind" && dataType == "WindAngle"){
fmt.Printf("wind_angel.value %v\n", value)
//Wind Strength info
}else if (len(os.Args) == 2 && os.Args[1] == "-wind" && dataType == "WindStrength"){
fmt.Printf("wind_strength.value %v\n", value)
//Wind GustAngel info
}else if (len(os.Args) == 2 && os.Args[1] == "-wind" && dataType == "GustAngle"){
fmt.Printf("wind_gangel.value %v\n", value)
//Wind Guststrength info
}else if (len(os.Args) == 2 && os.Args[1] == "-wind" && dataType == "GustStrength"){
fmt.Printf("wind_gstrength.value %v\n", value)
}

                            }
                    } 

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hello!
New app support rain daily and hourly info:
fmt.Printf("rain_daily_%v.value %v\n", key, value.data)
fmt.Printf("rain_hourly_%v.value %v\n", key, value.data)
as i can understand, your rain_rain.value can be only 0 or 1 (true or false), i not sure that we really need graphic for this ...

Wind also supported:
fmt.Printf("wind_speed_%v.label %v (speed)\n", key, value.name)
fmt.Printf("wind_gust_%v.label %v (gust)\n", key, value.name)

Wind angle can be 0-360, is it right? We can not make good graphic for this :(

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

ah you mean just rain is 0 or 1? okay...
no grafic you are right :( just 0 to 360 grad
okay :(

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

ah you mean just rain is 0 or 1? okay...

it's raining now (1) or not (0) :)

do you have any ideas for this graphs:
Wind-Angel
Gust-Angel

I think the standard graphics are completely useless for this

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

can we use each color for a angel?
red = nord
green = south
as example?

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

hm .... can you make example in excel?

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

i mean as example this
http://2.bp.blogspot.com/_GggamMj9KE4/TEd0knqmxyI/AAAAAAAAB4g/0yQf9ykklqs/s1600/forum_sum-day.png
red as north / ....

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

it's not possible, we have only one value - wind angle, it can be 0-360, will be only one line on graph, and it's completely useless for wind, i think ...on the graphs we have only in the scale - the time and the value of the measurement, I can not imagine how to display the direction of the wind: ( .... we can do something like this - https://data.soderslattsfk.se/munin/localdomain/localhost.localdomain/wx_wind_direction.html but it's not clear and useless :(

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

example for rain_value - https://data.soderslattsfk.se/munin/localdomain/localhost.localdomain/wx_rain.html

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

and more rain - https://data.soderslattsfk.se/munin/localdomain/localhost.localdomain/wx_rain_day.html

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

oh i was think that it be possible what one scale from 0 to 90 the second from 91 to 180 and so on.... you know? i dont know its work

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

New version uploaded:

  • graphics for wind direction
  • enable/disable any graphics

Test it :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

i will test it as soon as possible :) thanks

my comment about the api bug have you read?

https://github.com/romainbureau/netatmo-api-go
in this fork api the wind problem is fixed (fyi)

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Yes, i read your comment, api fork have a little other data format ... new version uploaded :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

go get github.com/romainbureau/netatmo-api-go
git pull
change wind angel to true in netatmo.cfg
./install

/etc/munin/plugins# munin-run netatmo-munin-plugin
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8fd14]

goroutine 1 [running]:
panic(0x259e80, 0x1060c010)
/usr/lib/go-1.7/src/runtime/panic.go:500 +0x33c
github.com/go-ini/ini.(*Section).GetKey(0x0, 0x283c34, 0x3, 0x352a38, 0x0, 0x0)
/root/go/src/github.com/go-ini/ini/section.go:101 +0x24
github.com/go-ini/ini.(*Section).Key(0x0, 0x283c34, 0x3, 0x0)
/root/go/src/github.com/go-ini/ini/section.go:160 +0x30
main.main()
/root/netatmo-munin-go/netatmo-munin-plugin.go:57 +0x500

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Try compile and run it from console, without "munin-run" ....working?

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

/usr/share/munin/plugins/netatmo-munin-plugin
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8fd14]

goroutine 1 [running]:
panic(0x259e80, 0x1060c010)
/usr/lib/go-1.7/src/runtime/panic.go:500 +0x33c
github.com/go-ini/ini.(*Section).GetKey(0x0, 0x283c34, 0x3, 0x352a38, 0x0, 0x0)
/root/go/src/github.com/go-ini/ini/section.go:101 +0x24
github.com/go-ini/ini.(*Section).Key(0x0, 0x283c34, 0x3, 0x0)
/root/go/src/github.com/go-ini/ini/section.go:160 +0x30
main.main()
/root/netatmo-munin-go/netatmo-munin-plugin.go:57 +0x500

same error

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

ok, i understand, please add this to netatmo.cfg:

[sensors]
CO2 = true
Noise = true
Pressure = true
Humidity = true
Temperature = true
WindStrength = true
Rain = true
WindAngle = false

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

you mean in the /etc/munin/netatmo.cfg?

i do... AHH now it works. Nice.....

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

yes

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

now is seems nice.....

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

so the first rain was coming.
Netatmo says: last hour 0mm rain / last day 0,1mm rain

munin-plugin say: daily AND hourly 101,00 mm

this are 2 problems i think. first is the 0.1 / 101 and the second that daily and hourly says the same but it is not

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

also wind speed and wind gust also have the same data (this is not correct) :(

by rain it is just one value:

multigraph netatmo_rain

{Niederschlagsmesser 16.766} <--- output from println that shows all information. i am sry but i dont know on witch type you read the datas :(

rain_daily_0.value 16.766
rain_hourly_0.value 16.766

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hello! Sorry, my mistake, data at graphics was really wrong :( Fix uploaded...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

Thanks. i had test it

/usr/share/munin/plugins/netatmo-munin-plugin
multigraph netatmo_wind_angl
wind_angle_0.value 7
gust_angle_0.value 71

multigraph netatmo_wind
wind_speed_0.value 13
panic: runtime error: index out of range

goroutine 1 [running]:
panic(0x25ae80, 0x1060c030)
/usr/lib/go-1.7/src/runtime/panic.go:500 +0x33c
main.main()
/root/netatmo-munin-go/netatmo-munin-plugin.go:266 +0x5978

The netatmo.cfg ist correct as i can see

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Try replace line 266 to this code:

if (len(modulesData["guststrength"]) >0){
	fmt.Printf("wind_gust_%v.value %v\n", key, modulesData["guststrength"][key].data)
}

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

line 266 is }
so i changed:


                         case "windstrength":
                                if (configGlobal.WindStrength) {
                                        fmt.Println("multigraph netatmo_wind")
                                        for key, _ := range m_data {
                                                fmt.Printf("wind_speed_%v.value %v\n", key, modulesData["windstrength"][key].data)
                                                fmt.Printf("wind_gust_%v.value %v\n", key, modulesData["guststrength"][key].data)
                                        }
                                        fmt.Println("")
                                }

to


                        case "windstrength":
                                if (configGlobal.WindStrength) {
                                        fmt.Println("multigraph netatmo_wind")
                                        for key, _ := range m_data {
                                                fmt.Printf("wind_speed_%v.value %v\n", key, modulesData["windstrength"][key].data)
                                                if (len(modulesData["guststrength"]) >0){
                                                fmt.Printf("wind_gust_%v.value %v\n", key, modulesData["guststrength"][key].data)
                                                }
                                        }
                                        fmt.Println("")
                                }

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

/usr/share/munin/plugins/netatmo-munin-plugin
multigraph netatmo_humidity
hum_0.value 76
hum_1.value 70
hum_2.value 71

multigraph netatmo_rain
panic: runtime error: index out of range

goroutine 1 [running]:
panic(0x259e80, 0x1060c030)
/usr/lib/go-1.7/src/runtime/panic.go:500 +0x33c
main.main()
/root/netatmo-munin-go/netatmo-munin-plugin.go:275 +0x48d4

im not so good as you :(

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

sad .... first, we make separate graphics for all data, test and then combine ... 5 min...

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

uploaded ...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

this work but i see now another problem :(
first run:

multigraph netatmo_temp
temp_0.value 17.7
temp_1.value 19
temp_2.value 19.5
multigraph netatmo_rain_daily
rain_daily_0.value 0.01313
multigraph netatmo_co2
co2_0.value 498
co2_1.value 362
multigraph netatmo_wind_angl
wind_angle_0.value 20
multigraph netatmo_wind_gust_angl
gust_angle_0.value 7
multigraph netatmo_pressure
pressure_0.value 762.96
multigraph netatmo_noise
noise_0.value 34
multigraph netatmo_humidity
hum_0.value 75
hum_1.value 70
hum_2.value 72
multigraph netatmo_wind
wind_speed_0.value 15

second run:

multigraph netatmo_humidity
hum_0.value 75
hum_1.value 70
hum_2.value 72
multigraph netatmo_wind
wind_speed_0.value 15
multigraph netatmo_noise
noise_0.value 34
multigraph netatmo_pressure
pressure_0.value 762.96
multigraph netatmo_temp
temp_0.value 17.7
temp_1.value 19
temp_2.value 19.5
multigraph netatmo_rain_daily
rain_daily_0.value 0.01313
multigraph netatmo_co2
co2_0.value 498
co2_1.value 362
multigraph netatmo_wind_angl
wind_angle_0.value 20
multigraph netatmo_wind_gust_angl
gust_angle_0.value 7

third run:

multigraph netatmo_temp
temp_0.value 17.7
temp_1.value 19
temp_2.value 19.5
multigraph netatmo_co2
co2_0.value 498
co2_1.value 362
multigraph netatmo_wind_angl
wind_angle_0.value 20
multigraph netatmo_wind_gust_angl
gust_angle_0.value 7
multigraph netatmo_pressure
pressure_0.value 762.96
multigraph netatmo_humidity
hum_0.value 75
hum_1.value 70
hum_2.value 72
multigraph netatmo_wind
wind_speed_0.value 15
multigraph netatmo_noise
noise_0.value 34
multigraph netatmo_rain_daily
rain_daily_0.value 0.01313

as you can see
1 - data but not all
2 - more data but not all
3 - more data as second

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

if i test it minutes after ... same effect

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

as i can see, we not have data for netatmo_rain_hourly and netatmo_wind_gust ... api problem? can you make example app with this api - https://github.com/romainbureau/netatmo-api-go ?

go
package main

import (
	"fmt"
	"os"

	netatmo "github.com/romainbureau/netatmo-api-go"
)

func main() {

	n, err := netatmo.NewClient(netatmo.Config{
    ClientID:     "YOUR_APP_ID",
    ClientSecret: "YOUR_APP_SECRET",
    Username:     "YOUR_CREDENTIAL",
    Password:     "YOUR_PASSWORD",
	})
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	dc, err := n.Read()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	for _, station := range dc.Stations() {
		fmt.Printf("Station : %s\n", station.StationName)

		for _, module := range station.Modules() {
			fmt.Printf("\tModule : %s\n", module.ModuleName)

			ts, data := module.Data()
			for dataType, value := range data {
				fmt.Printf("\t\t%s : %s (%d)\n", dataType, value, ts)
			}
		}
	}
}

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

Station : Pleasure Dome
Module : Outdoor
Temperature : %!s(float32=17.4) (1508942072)
Humidity : %!s(int32=76) (1508942072)
LastMesure : %!s(int64=1508942072) (1508942072)
Module : Niederschlagsmesser
Rain : %!s(float32=0) (1508942085)
Rain1Hour : %!s(float32=0) (1508942085)
Rain1Day : %!s(float32=1.313) (1508942085)
LastMesure : %!s(int64=1508942085) (1508942085)
Module : Indoor 1
Temperature : %!s(float32=19.1) (1508942072)
Humidity : %!s(int32=70) (1508942072)
CO2 : %!s(int32=557) (1508942072)
LastMesure : %!s(int64=1508942072) (1508942072)
Module : Windmesser
LastMesure : %!s(int64=1508942091) (1508942091)
WindAngle : %!s(int32=50) (1508942091)
WindStrength : %!s(int32=20) (1508942091)
GustAngle : %!s(int32=38) (1508942091)
Module : Indoor
AbsolutePressure : %!s(float32=1001.3) (1508942096)
LastMesure : %!s(int64=1508942096) (1508942096)
Temperature : %!s(float32=19.8) (1508942096)
Humidity : %!s(int32=72) (1508942096)
CO2 : %!s(int32=542) (1508942096)
Noise : %!s(int32=38) (1508942096)
Pressure : %!s(float32=1017.6) (1508942096)

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Can you give me access to your netatmo account? It's will be very helpful for fastest and easy debug. My email [email protected]

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

./done i had invite you or do your mean not guest...... directly my account?

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Thanks for invite! Now all must work, please test :)

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024
  1. https://github.com/romainbureau/netatmo-api-go - not have all data
  2. https://github.com/exzz/netatmo-api-go - not have GustStrength data
  3. exzz/netatmo-api-go#5

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

go get github.com/NightMan-1/netatmo-api-go

I made fork for API

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

it was my mistake im sorry

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

what i dont understand are the data from rain :(
it says 101 m (what is m?) why 101?
the scale says (correct) 1,01mm

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

Hey nighty ;)
In th api there is a way now.... to get Systeminfos like WLAN or battery status

Add Info function to display RF, wifi and battery levels

Can we also this draw in munin pls?

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hello! New version ready :)

2.3 (October 28, 2017)

  • new NetAtmo API source
  • code optimization
  • new graphics: BatteryPercent, RFStatus, WifiStatus
  • better rain graph
  • new configuration parcer

Warning! Configuration format changed!

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

thank you....


./install.sh
compilling...# command-line-arguments
./netatmo-munin-plugin.go:102: module.Info undefined (type *netatmo.Device has n                                             o field or method Info)
ok

it this ok?

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

btw i dont see any infos about battery or something in cgf i set it to true

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

make go get -u github.com/exzz/netatmo-api-go ... you use old API version...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

OK thanks that did it. Now compiling works without error.

BUT :(

/usr/share/munin/plugins/netatmo-munin-plugin
oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_client"}

i have look into netatmo.cfg ... alll is set right as i see

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

add quotes to configuration file

ClientID = "ClientID"
ClientSecret = "ClientSecret"
Username = "Username"
Password = "Password"

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

i had this :(

go https://dev.netatmo.com

ClientID = "xxxxxxxxxxxxxx"
ClientSecret = "xxxxxxxxxxxxxxxxxxx"
Username = "xxxxxxxxx"
Password = "xxxxxxxxx"

[sensors]
CO2 = true
Noise = true
Pressure = true
Humidity = true
Temperature = true
WindStrength = true
Rain = true
WindAngle = true
BatteryPercent = true
RFStatus = true
WifiStatus = true

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

do you change "ClientID" to your real ClientID? .... netatmo-munin-plugin app look for configuration file (netatmo.cfg) in current folder and, then, in /etc/munin folder...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

i copy the netatmo.cfg to /etc/munin/netatmo.cfg
then i change all data in "" to mine and set all sensors to true

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

uploaded new app with better error info

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

Do not forget change example configuration settings :)

Why? it is my config copied and changed

ahh i see the problem

i had moved NOW your netatmo.cfg
mv /netatmo-munin-go/netatmo.cfg /netatmo-munin-go/netatmo.weg

and now it work!!!

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

ok :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

But i don´t understand... why it check your netatmo.cfg and not the /etc/munin/netatmo.cfg?

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

i use netatmo.cfg in current folder for debug ...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

a i see but this data i never filled up because your script copy this data to /etc/munin/ and open nano to change it .... :)

actual i see rain daily "nan" rain hourly "0.00"

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

https://www.dropbox.com/s/looxowb37isbsdt/netatmo_rain-pinpoint%3D1509105383%2C1509213383.png?dl=0

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

http://pd-network.de/here.jpg

Shell:
multigraph netatmo_rain
rain_daily_0.value 0.202
rain_hourly_0.value 0

I think i forgott to restart munin-node :(

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

"nan" at graph is "no data" ... yet ... try wait 5-10 min...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

hmm all data are right there just rain not work :( can .... i will restart my raspberry

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

hm ... how about add some sensors (temperature and etc) directly to raspberry and display data in munin? :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

You mean sensors directly at the raspi? there is one :)
is look for temp and humidity but my raspi is not here :)

So now i had delete all monitoring files from munin with name like rain....

again:
daily: nan
hourly: 0.00

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

eh ... not have time for my sensors :( ... want make my own gui for munin at golang ... just for fun :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

for this sensor i use a plugin named dht22

btw my munin say now rain
daily nan
hourly 0

shell:
multigraph netatmo_rain
rain_daily_0.value 0.303
rain_hourly_0.value 0.101

because it is rain here

All data are nice but rain not :(

2017/10/28 20:00:13 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:05:14 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:20:19 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:35:22 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:40:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:50:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 20:55:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 21:05:28 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 21:15:26 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:15:26 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:25:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:25:25 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:30:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:30:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:40:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.303'
2017/10/28 21:40:21 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.101'
2017/10/28 21:50:11 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.404'
2017/10/28 21:50:11 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.202'
2017/10/28 21:55:10 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_daily_0-c.rrd: not a simple unsigned integer: '0.505'
2017/10/28 21:55:10 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.303

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

BTW:

// Rain : Last rain measured (in mm)
// Rain1Hour : Amount of rain in last hour
// Rain1Day : Amount of rain today

I have test....
// fmt.Printf("rain_daily_%v.type COUNTER\n", key)
// fmt.Printf("rain_hourly_%v.type COUNTER\n", key)

now it shows data and draw graphs.

http://munin-monitoring.org/ticket/1193

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

2017/10/28 21:55:10 [ERROR] In RRD: Error updating /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: /var/lib/munin/monitor/monitor-netatmo_rain-rain_hourly_0-c.rrd: not a simple unsigned integer: '0.303

It's bug in rrdtool, you probably have very old version, all work fine for me ...

http://munin-monitoring.org/ticket/1193
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543631

ps "// Rain : Last rain measured (in mm)" - will test this soon ...

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

old version of rrd?
rrdtool 1.6.0-1+b1

this is the actaly version with debian 9

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

see url ... can not help with this right now :(

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

i know :( what version u have?

at the link (from 2012) it say

  | Version: | 1.4.6

without counter all is fine... hmmm

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

RRDtool 1.6.0 Copyright by Tobias Oetiker [email protected]
Compiled 2016-04-25 07:23:34

debian 9.x

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

go to sleep, continue tomorrow :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

i wish you good night, i am on work to 6 o clock.

so your rrd is the same as mine :)

i comment out the three counter lines.....
it shows and draw all fine...

what do this counter flags?

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hello Shizzlebix!

I'm testing new graphic for rain, what do you think?

https://www.dropbox.com/s/gr44yd88y7na0z6/netatmo_rain-pinpoint%3D1510314961%2C1510422961.png?dl=0

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

Hey,

very nice. But can you tell me what the counterlines do? because sind a had comment it out all works. so what do this lines?

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hi!
We have 3 counters, first ("last rain measured") - its current rain amount, its work only when rain do right now. Second ("hourly") - you can have 1-2-10 rain at hour and this counter summary all in one, "daily" - something like "hourly" ... not sure, that all counters really usable ...

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

Hew app uploaded, for update:

  1. compile and install plugin
  2. run "su - munin --shell=/bin/bash -c /usr/share/munin/munin-update" for update munin global config
  3. delete old munin rain data (3 file)
  4. run "su - munin --shell=/bin/bash -c /usr/share/munin/munin-update" again for creating data files ...
  5. wait for rain :)

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

su - munin --shell=/bin/bash -c /usr/share/munin/munin-update
[FATAL ERROR] Lock already exists: /var/run/munin/munin-update.lock. Dying.
at /usr/share/perl5/Munin/Master/Update.pm line 128.

this one?
netatmo_rain-day.png netatmo_rain.html netatmo_rain-month.png netatmo_rain-week.png netatmo_rain-year.png

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

2 - munin already running, try again in one min
3 - no, rrd files in /var/lib/munin ....

from netatmo-munin-go.

Shizzlebix avatar Shizzlebix commented on June 24, 2024

monitor-netatmo_munin_rain_sh-rain_day-g.rrd
monitor-netatmo_munin_rain_sh-rain_hour-g.rrd
monitor-netatmo_munin_rain_sh-rain_rain-g.rrd
monitor-netatmo_rain_daily-rain_daily_0-g.rrd
monitor-netatmo_rain-rain_0-g.rrd
monitor-netatmo_rain-rain_daily_0-c.rrd
monitor-netatmo_rain-rain_daily_0-g.rrd
monitor-netatmo_rain-rain_hourly_0-c.rrd
monitor-netatmo_rain-rain_hourly_0-g.rrd
monitor-netatmo_rain-rain_rain_0-d.rrd
monitor-netatmo_rain-rain_rain_0-g.rrd

a i see now it work an no more errors 💃

from netatmo-munin-go.

NightMan-1 avatar NightMan-1 commented on June 24, 2024

yes

from netatmo-munin-go.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.