temperature

Hello,

 

I have the problem using EmonTx teperature.

When i use the sketch temperature_search or emontx_temperature_power i become the message error: application.h  no such file or directory

I have surch but cant find such file,  

geurink33's picture

Re: temperature

in fact i become the message:

 

D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:3:25: error: application.h: No such file or directory
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:14: error: 'D3' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp: In function 'void printAddress(uint8_t*)':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:27: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:28: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:28: error: 'HEX' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp: In function 'void printTemperature(uint8_t*)':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:43: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp: In function 'void setup()':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:52: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:59: error: 'DEC' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp: In function 'void loop()':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:112: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application.cpp:118: error: 'delay' was not declared in this scope

ukmoose's picture

Re: temperature

If you open the file temperature_search.ino in the Arduino IDE.

At the top of the file it says this : 

// THIS SKETCH REQUIRES:

// Libraries in the standard arduino libraries folder:
//
// - OneWire library http://www.pjrc.com/teensy/td_libs_OneWire.html
// - DallasTemperature http://download.milesburton.com/Arduino/MaximTemperature

 

Have you checked that you have downloaded the two libraries the script needs and placed them in the arduino library folder?

If the Arduino IDE is open, you will need to quit and reopen the Arduino IDE.

 

geurink33's picture

Re: temperature

Yes, i have the libraries DallasTemperature en OneWire in my directory.

 

I have check the directories  but there is no file like applications.h in there

ukmoose's picture

Re: temperature

I think you are using the wrong library.

You would appear to be using this...https://github.com/justinatomatic/DallasTemperature_SparkCore .

 

Try downloading the one listed in the sketch and try again.

 

geurink33's picture

Re: temperature

I have thit file SparkCore, tryd it again but still the same result.

 

D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:3:25: error: application.h: No such file or directory
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:14: error: 'D3' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp: In function 'void printAddress(uint8_t*)':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:27: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:28: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:28: error: 'HEX' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp: In function 'void printTemperature(uint8_t*)':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:43: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp: In function 'void setup()':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:52: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:59: error: 'DEC' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp: In function 'void loop()':
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:112: error: 'Serial' was not declared in this scope
D:\Arduino\Sketchbook\libraries\DallasTemperatureSparkCore\application (2).cpp:118: error: 'delay' was not declared in this scope

ukmoose's picture

Re: temperature

I think it will NOT work with the SparkCore library -

Please follow these instructions:

  1. Delete DallasTemperatureSparkCore Library.
  2. Download this one :  http://download.milesburton.com/Arduino/MaximTemperature (get the LATEST.zip)
  3. Install it into Arduino/libraries (you will need to change the folder name to not have - in)
  4. Quit Arduino IDE (if it is open)
  5. Open Arduino IDE
  6. Try again

 

 

geurink33's picture

Re: temperature

Hello Ukmoose, (nice name)

Many thanks for your help.  My temperature metering is working now. 

Do you now why the jgauge in a dashboard is giving a 10 or 100 times the valve of the metering.

Regards  Frans

ukmoose's picture

Re: temperature

Glad it is working!

As your jquage issue is probably unrelated to your library issue, can I suggest you open up a new post?

rgds

 

ukmoose

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.