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

Fails to run tests #54

Closed tobyweston closed 6 years ago

tobyweston commented 6 years ago
[info] Total for specification ErrorOnTemperatureSpikeTest
[info] Finished in 42 seconds, 994 ms
[info] 11 examples, 0 failure, 0 error
[info] 
2018-02-04 16:51:36:642 [pool-4-thread-7] INFO Temperature spikes greater than +/-30% will not be recorded
Non-200 body was:
\/-(Unable to parse content as JSON [1.1] failure: string matching regex `\d{4}' expected but `E' found

Error: Could not find or load main class bad.robot.temperature.client.Client
^)
tobyweston commented 6 years ago

If the log starts with

Error: Could not find or load main class bad.robot.temperature.client.Client
2018-02-04 18:41:56:087 [main] INFO Initialising client 'bedroom1' (with 2 of a maximum of 5 sensors)...
2018-02-04 18:41:56:087 [main] INFO Initialising client 'bedroom1' (with 2 of a maximum of 5 sensors)...
2018-02-04 18:41:56:740 [main] INFO Sending ping request to /255.255.255.255

It won't be parsed as JSON and you get the error above (it's expecting a date format followed by thread, log level etc).

If you try to start the client up, for example on boot, when something has failed during compilation (and the binaries aren't there), you'll get the first line appearing in the log.

You can delete the ~/.temperature/temperature-machine.log and have another go...

tobyweston commented 6 years ago

On startup, the shell scripts used to startup the app have gone back to deleting the old log so I'm closing this.