SpoturDeal / MMM-Domoticz

Read data from you Domoticz system
MIT License
8 stars 2 forks source link

Rain Meter #15

Closed johanmaasheide closed 5 years ago

johanmaasheide commented 5 years ago

i have a rain meter can you insert hem sorry mijn engels is niet zo goed

SpoturDeal commented 5 years ago

Dear Johan,

What is the brand and type of your rain meter? To know what information your rain meter gives can you please enter the following in your browser

Wat is het merk en type van je regen meter? Om te weten welke informatie er uit je regen meter komt type het volgende in je browser ipadres:port is het adres van je domoticz bijvoorbeeld 192.168.1.22:8088

http://ipadresss:port/json.htm?type=devices&used=true&filter=all

This delivers a json file please locate your rain meter Je krijgt nu een json bestand en zoek daar je regen meter

It looks similar like this Het ziet er ongeveer zo uit.

 {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CustomImage" : 0,
         "Data" : "25.6 C",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 7,
         "HardwareName" : "ZwaveUSB",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveTimeout" : false,
         "ID" : "1B01",
         "LastUpdate" : "2019-06-24 09:08:11",
         "Name" : "Keuken",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "SubType" : "LaCrosse TX3",
         "Temp" : 25.600000000000001,
         "Timers" : "false",
         "Type" : "Temp",
         "TypeImg" : "temperature",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "111",
         "trend" : 2
      },

Please reply with that part of the JSON file, it will be different from the example Reageer aub met dat deel van het JSON bestand, het zal anders zijn dan mijn voorbeeld

Hope I can help you Ik hoop dat het gaat lukken.

Greeting from sunny Noord Brabant

Carl

johanmaasheide commented 5 years ago

Dear Carl,

This is the documentation of the rain gauge. I hope that I have given enough information to

{ "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 100, "CustomImage" : 0, "Data" : "0;387.0", "Description" : "", "Favorite" : 1, "HardwareID" : 3, "HardwareName" : "RFXCOM", "HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver", "HardwareTypeVal" : 1, "HaveTimeout" : false, "ID" : "C301", "LastUpdate" : "2019-06-24 19:34:25", "Name" : "Regenmeter", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "Rain" : "0.0", "RainRate" : "0", "ShowNotifications" : true, "SignalLevel" : 6, "SubType" : "Alecto", "Timers" : "false", "Type" : "Rain", "TypeImg" : "rain", "Unit" : 0, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "1865" }, {

Greeting from sunny Limburg

Johan

Van: Carl [mailto:notifications@github.com] Verzonden: maandag 24 juni 2019 9:22 Aan: SpoturDeal/MMM-Domoticz MMM-Domoticz@noreply.github.com CC: johanmaasheide johanmaasheide@gmail.com; Author author@noreply.github.com Onderwerp: Re: [SpoturDeal/MMM-Domoticz] Rain Meter (#15)

Dear Johan,

What is the brand and type of your rain meter? To know what information your rain meter gives can you please enter the following in your browser

Wat is het merk en type van je regen meter? Om te weten welke informatie er uit je regen meter komt type het volgende in je browser ipadres:port is het adres van je domoticz bijvoorbeeld 192.168.1.22:8088

http://ipadresss:port/json.htm?type=devices&used=true&filter=all

This delivers a json file please locate your rain meter Je krijgt nu een json bestand en zoek daar je regen meter

It looks similar like this Het ziet er ongeveer zo uit.

{ "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 100, "CustomImage" : 0, "Data" : "25.6 C", "Description" : "", "Favorite" : 0, "HardwareID" : 7, "HardwareName" : "ZwaveUSB", "HardwareType" : "OpenZWave USB", "HardwareTypeVal" : 21, "HaveTimeout" : false, "ID" : "1B01", "LastUpdate" : "2019-06-24 09:08:11", "Name" : "Keuken", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "LaCrosse TX3", "Temp" : 25.600000000000001, "Timers" : "false", "Type" : "Temp", "TypeImg" : "temperature", "Unit" : 1, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "111", "trend" : 2 },

Please reply with that part of the JSON file, it will be different from the example Reageer aub met dat deel van het JSON bestand, het zal anders zijn dan mijn voorbeeld

Hope I can help you Ik hoop dat het gaat lukken.

Greeting from sunny Noord Brabant

Carl

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SpoturDeal/MMM-Domoticz/issues/15?email_source=notifications&email_token=AF7YHJJYIMBIYNKK52LCZ6DP4BYX7A5CNFSM4H2W7YGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYMAKFA#issuecomment-504890644 , or mute the thread https://github.com/notifications/unsubscribe-auth/AF7YHJJXJNPM2ZMMAQ44LM3P4BYX7ANCNFSM4H2W7YGA .

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient

Virusvrij. http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient www.avg.com

SpoturDeal commented 5 years ago

Dear Johan,

Just uploaded the rainmeter version. Let me know if it works.

Grtz

Carl

johanmaasheide commented 5 years ago

Dear Carl , I have replaced the file now the board gives the message load data from domoticz. and don't start any furthe start verder niet op grtz

Johan

SpoturDeal commented 5 years ago

Hello Johan,

Did you replace the file or did you use

git pull

Then restart your mirror

SpoturDeal commented 5 years ago

@johanmaasheide

Just updated again

log in to your mirror

cd MagicMirror/modules/MMM-Domoticz
git pull
pm2 restart 0

There was an error it is pm2 instead of pm

johanmaasheide commented 5 years ago

Hello carl i have a new update if a try git pull Already up to date pm restart 0 pm command not found i have de same problem

johanmaasheide commented 5 years ago

Hello carl, i try pm2 restart 0 [pm2] applying action restartProcessId on app [0] (ids: 0) [pm2] [MagicMirror] (0) v restart de magicMirror de same loading de domoticz date this is my config.js { module: "MMM-Domoticz", position: "top_left", // see mirror setting for options config: {
updateInterval: 100, // every 45 seconds apiBase: '192.168.179.41', apiPort: 8080, apiUser: "XXXX", apiPw: "xxxx", moduleTitle: "Schakelaars", temperatureTitle:"Tempraturen", // You can adapt the following text to fit your language energyTitle: "Verbruikers", rainTitle: "Regen", rainLabel: "Regen meter", batteryTitle: "Battery nivo", coTitle: "CO2 level", blindsTitle: "Rolluiken", energyNow: "Watt Actueel", energyTotal: "Opbrengst Totaal", energyToday: "Opbrengst vandaag", batteryThreshold: 20, coThreshold: 650, subMenus: true, smartMeter: false, smartMeterOffset: 0, showItems: ['temperature','energy','humidity','baro','usage','voltage','sensor','pulse',,'meter','rain'],
excludeDevices: ['none','add your own'], // Device that will not be shown onlyShowExcluded: false, // if true only exluded devices are shown textWhite: true, alarmOffLabel: "Disabled",

    groupSensors: true
}

grtz johan

SpoturDeal commented 5 years ago

Between pulse and meter in showItems there is a comma too many.

pulse',,'meter Change to pulse','meter

Op ma 1 jul. 2019 19:27 schreef johanmaasheide notifications@github.com:

Hello carl, i try pm2 restart 0 [pm2] applying action restartProcessId on app [0] (ids: 0) [pm2] [MagicMirror] (0) v restart de magicMirror de same loading de domoticz date this is my config.js { module: "MMM-Domoticz", position: "top_left", // see mirror setting for options config: { updateInterval: 100, // every 45 seconds apiBase: '192.168.179.41', apiPort: 8080, apiUser: "XXXX", apiPw: "xxxx", moduleTitle: "Schakelaars", temperatureTitle:"Tempraturen", // You can adapt the following text to fit your language energyTitle: "Verbruikers", rainTitle: "Regen", rainLabel: "Regen meter", batteryTitle: "Battery nivo", coTitle: "CO2 level", blindsTitle: "Rolluiken", energyNow: "Watt Actueel", energyTotal: "Opbrengst Totaal", energyToday: "Opbrengst vandaag", batteryThreshold: 20, coThreshold: 650, subMenus: true, smartMeter: false, smartMeterOffset: 0, showItems: ['temperature','energy','humidity','baro','usage','voltage','sensor','pulse',,'meter','rain'], excludeDevices: ['none','add your own'], // Device that will not be shown onlyShowExcluded: false, // if true only exluded devices are shown textWhite: true, alarmOffLabel: "Disabled",

groupSensors: true }

grtz johan

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SpoturDeal/MMM-Domoticz/issues/15?email_source=notifications&email_token=AGKV2IPX7SXNJVTVHCI2MU3P5I5ANA5CNFSM4H2W7YGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY6Z6PQ#issuecomment-507354942, or mute the thread https://github.com/notifications/unsubscribe-auth/AGKV2IPCWFYPI5OXPNDURYLP5I5ANANCNFSM4H2W7YGA .

johanmaasheide commented 5 years ago

de same date ihave de old file MMM-Domoticz.js input in the dir home/pi/MagicMirror/modules/MMM-Domoticz en its works if i load the new file MMM-Domoticz de same problem

johanmaasheide commented 5 years ago

hallo carl i input de rules in mij old file rain += trClassSmall + dev.Name + ' ' + tdEndClassSmall + wtt[0] + endLine; rain += trClassSmall + dev.Name + ' ' + tdEndClassSmall + wtt[1] + endLine; gives that message load data from Domoticz if I put // in front of it, it will start grtz johan

johanmaasheide commented 5 years ago

// rain += trClassSmall + dev.Name + ' ' + tdEndClassSmall + wtt[0] + endLine; // rain += trClassSmall + dev.Name + ' ' + tdEndClassSmall + wtt[1] + endLine;

SpoturDeal commented 5 years ago

I have just uploaded an updated version

cd MagicMirror/modules/MMM-Domoticz
git pull
pm2 restart 0

if pm2 is not working you didn't install it of you must use pm2 restart MagicMirror

follow this link to add pm2 auto start

if the module doesn't load check

pm2 logs 0 
or
pm2 logs MagicMirror

The log will tell why the code breaks

johanmaasheide commented 5 years ago

Hallo Carl

I use the version /* Magic Mirror

this version just works maybe the problem is somewhere else. I am going to do a complete new installation of my mirror, then it may work or you will hear from me

gr Johan

johanmaasheide commented 5 years ago

Hello Carl, It works now The total counter is good The day counter displays the value of mm per hour x100 100 = 1 mm and then returns to zero after an hour. The rain meter also returns mm / h (no Day counter) hour counter. I also pasted the rules in my old version (version 1.07 24th April 2018) and made some changes I think it goes wrong with the January 10 update. I still have the old rules in it from before January 10.

Grtz Johan,

SpoturDeal commented 5 years ago

I will close this issue