In the top right hand corner of the WebIDE is a + sign you can use to add files to your project.
Click that + sign, name it DS18B20 (it will set the name of the .h and .cpp files) paste the contents of the .h file from here ([DS18B20 lib][1] into the first tab, the contents of DS18B20.cpp going into the .cpp tab that was created when you clicked the + sign.
The OneWire lib in the WebIDE is different than the one on @krvarma’s GitHub, but looks to have all of the same functions and more, maybe use that one. There is also a DS18X20 “lib” in the WebIDE but it is really just OneWire with an example that is written for the DS18X20 chips, @krvarma wrapped that example code into a lib so it is easy to consume making it more user friendly and keeps the main app cleaner. [1]: https://github.com/krvarma/Dallas_DS18B20_SparkCore
Thank you for your help @LukeUSMC. I have been working with Arduino and Spark or Particle (WebIDE) is new to me.
Ok, I uploaded your code. For far I have the following in cloud:
EVENT NAMEDATAPUBLISHED ATDEVICE
Show 0 new event
dsTmp-0.06October 1st at 11:08:46 pmMy_Core
{“data”:"-0.06",“ttl”:“60”,“published_at”:“2015-10-01T22:08:46.075Z”,“coreid”:"…",“name”:“dsTmp”}
dsTmp-0.06October 1st at 11:07:55 pmMy_Core
{“data”:"-0.06",“ttl”:“60”,“published_at”:“2015-10-01T22:07:55.087Z”,“coreid”:"…",“name”:“dsTmp”}
dsTmp-0.06October 1st at 11:07:05 pmMy_Core
Ok, there is still a long term delays publishing variable(s) with Particle Core. The same code runs no problem on Particle Photon. So I suspect now there is an issue with the Core (either CC3000 or defective Core).