no logging to database problem

7 years 2 months ago #2314 by gasper
hello,

after my sdcard died, i formated it and managed to recover sqlite database. after installing latest version 0.9 and copying my "backup" i have i problem that easyiot wont log to database.i have check marks on log to database, i tried unseting it and saving and all variations. Also after i deleted sqlite databse easyiot managed to create file but it wont write to it. so im stuck.

what should i check?

Please Log in or Create an account to join the conversation.

7 years 2 months ago #2316 by EasyIoT

gasper wrote: hello,

after my sdcard died, i formated it and managed to recover sqlite database. after installing latest version 0.9 and copying my "backup" i have i problem that easyiot wont log to database.i have check marks on log to database, i tried unseting it and saving and all variations. Also after i deleted sqlite databse easyiot managed to create file but it wont write to it. so im stuck.

what should i check?


Stop EasyIoT service, try to run EasyIoT server in console mode and check console output.

Please Log in or Create an account to join the conversation.

7 years 2 months ago #2323 by gasper
nothing can be seen in console that i would get as an error. You can see that sensor reported hum and temp. but no errors. Db file is still 0 kb.

--snip
root@thingy:/home/easyiot# mono EasyIoT.exe
2015-10-01T19:53:48.1377150+02:00 INFO System System started
okt 01 19:53:49 Web service started
okt 01 19:53:49 Listening on port(s):80, 1301
2015-10-01T19:53:49.7801860+02:00 DEBUG MySensors MySensors Connect
================ SPI Configuration ================
CSN Pin = CE0 (PI Hardware Driven)
CE Pin = Custom GPIO25
Clock Speed = 8 Mhz
================ NRF Configuration ================
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xa8a8e1fc00 0xa8a8e1fc00
RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
TX_ADDR = 0xa8a8e1fc02
RX_PW_P0-6 = 0x20 0x20 0x20 0x00 0x00 0x00
EN_AA = 0x3b
EN_RXADDR = 0x06
RF_CH = 0x4c
RF_SETUP = 0x27
CONFIG = 0x0e
DYNPD/FEATURE = 0x3f 0x06
Data Rate = 250KBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_MAX
2015-10-01T19:53:49.8978930+02:00 DEBUG MySensors Mysensors Start driver.
2015-10-01T19:53:50.0035120+02:00 DEBUG RPiGPIO GPIO Disconnect
2015-10-01T19:53:50.0417580+02:00 DEBUG Esp8266 ESP8266 Disconnect
2015-10-01T19:53:56.5073570+02:00 DEBUG MySensors Read: 2-2-0 s=255,c=0,t=17,pt=0,l=5:1.4.1
2015-10-01T19:53:56.5292170+02:00 DEBUG MySensors Read: 2-2-0 s=255,c=3,t=6,pt=1,l=1:0
2015-10-01T19:53:58.5801740+02:00 DEBUG MySensors Read: 2-2-0 s=255,c=3,t=11,pt=0,l=8:Humidity
2015-10-01T19:53:58.6311660+02:00 DEBUG MySensors Read: 2-2-0 s=255,c=3,t=12,pt=0,l=3:2.0
2015-10-01T19:53:58.6621620+02:00 DEBUG MySensors Read: 2-2-0 s=0,c=0,t=7,pt=0,l=5:1.4.1
2015-10-01T19:53:58.6650520+02:00 DEBUG MySensors Rx: Sensor presentation NodeId:2,SensorId:0,type:S_HUM,data:1.4.1
2015-10-01T19:53:58.7552140+02:00 DEBUG MySensors Read: 2-2-0 s=1,c=0,t=6,pt=0,l=5:1.4.1
2015-10-01T19:53:58.7564250+02:00 DEBUG MySensors Rx: Sensor presentation NodeId:2,SensorId:1,type:S_TEMP,data:1.4.1
2015-10-01T19:53:58.8071800+02:00 DEBUG MySensors Read: 2-2-0 s=1,c=1,t=0,pt=7,l=5:22.8
2015-10-01T19:53:58.8390250+02:00 INFO MySensors N2S1 Sensor.Temperature 22.8 -
2015-10-01T19:53:58.9381780+02:00 DEBUG MySensors Read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:48.1
2015-10-01T19:53:58.9411940+02:00 INFO MySensors N2S0 Sensor.Humidity 48.1 -

Please Log in or Create an account to join the conversation.

7 years 2 months ago #2326 by gasper
this is driving me insane now. i did new install, everything from scratch but still cant log to database. it must be me doing something wrong...

Please Log in or Create an account to join the conversation.

7 years 2 months ago #2327 by gasper
for some reason version 0.8 works. ill stick with that for now.

Please Log in or Create an account to join the conversation.

7 years 2 months ago #2341 by EasyIoT

gasper wrote: for some reason version 0.8 works. ill stick with that for now.


You can try with RPI image and replace config folder with yours.

Please Log in or Create an account to join the conversation.

Time to create page: 0.239 seconds

Forum latest

  • No posts to display.