tobyweston / temperature-machine

Data logger for multiple DS18B20 temperature sensors on one or more machines
Apache License 2.0
67 stars 22 forks source link

Changed Hostname and Device has stopped logging #38

Closed singh763173 closed 6 years ago

singh763173 commented 6 years ago

Hey Toby,

Wondering if you could help me out - I changed the hostname on my Pi last night and now it has stopped logging. The page is still available on port 11900 and when i cat the w1_slave file for the sensor, I'm getting a reading.

I'm guessing the hostname is hardcoded somewhere and needs to be updated? Any idea where?

Cheers

singh763173 commented 6 years ago
cat /home/pi/.temperature/temperature-machine.log

Error: Unable to access jarfile target/scala-2.12/temperature-machine-2.1.jar

An error occurred executed a scheduled task (GenerateGraph(24 hours)) Unknown datasource name: tempmonitor-sensor-1

An error occurred executed a scheduled task (JsonExport(24 hours)) Unknown datasource name: tempmonitor-sensor-1

Old hostname - TempMonitor01 New hostname - tempmonitor1

tobyweston commented 6 years ago

Hey, check your .sh files (start.sh, start-client.sh and start-server.sh) and the boot setup in /etc/dc.local. There may be mention of your host name. Let me know how you get on.

tobyweston commented 6 years ago

@singh763173 is this working now? I'll close if so

singh763173 commented 6 years ago

I think so - just the issue that I posted in the other thread!

Thanks for your help with this one!