<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: maxzuraw</title>
    <description>The latest articles on DEV Community by maxzuraw (@maxzuraw).</description>
    <link>https://dev.to/maxzuraw</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F784590%2Ffafc6275-d952-4ce8-ba3a-6de67ab498f5.jpeg</url>
      <title>DEV Community: maxzuraw</title>
      <link>https://dev.to/maxzuraw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maxzuraw"/>
    <language>en</language>
    <item>
      <title>Cold bedroom notifier</title>
      <dc:creator>maxzuraw</dc:creator>
      <pubDate>Sun, 02 Jan 2022 16:03:35 +0000</pubDate>
      <link>https://dev.to/maxzuraw/cold-bedroom-notifier-2ed6</link>
      <guid>https://dev.to/maxzuraw/cold-bedroom-notifier-2ed6</guid>
      <description>&lt;h3&gt;
  
  
  Overview
&lt;/h3&gt;

&lt;p&gt;Simple temperature monitoring station, build out of spring boot and react native. &lt;/p&gt;

&lt;p&gt;100 feet view: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkmusprifi4w994lwwesx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkmusprifi4w994lwwesx.png" alt="cbn overview"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;Choose Your Own Adventure&lt;/p&gt;

&lt;h3&gt;
  
  
  Link to Code
&lt;/h3&gt;

&lt;p&gt;backend-server: &lt;a href="https://github.com/maxzuraw/cbn-server-atlas-hackaton.git" rel="noopener noreferrer"&gt;https://github.com/maxzuraw/cbn-server-atlas-hackaton.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;mobile-app: &lt;a href="https://github.com/maxzuraw/cbn-mobile-atlas-hackaton.git" rel="noopener noreferrer"&gt;https://github.com/maxzuraw/cbn-mobile-atlas-hackaton.git&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Easiest way to test:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  Starting backend
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;clone backend-server repo&lt;/li&gt;
&lt;li&gt;run ./startservice.sh script&lt;/li&gt;
&lt;li&gt;open browser: &lt;a href="http://localhost:8080" rel="noopener noreferrer"&gt;http://localhost:8080&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;login with admin:admin&lt;/li&gt;
&lt;li&gt;add new sensor in "Sensors" section as follows:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxex3wx3gyyjlbjzptk1q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxex3wx3gyyjlbjzptk1q.png" alt="Adding new sensor"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Starting mobile client
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Open: &lt;a href="https://expo.dev/@l0cke/cbn-mobile" rel="noopener noreferrer"&gt;https://expo.dev/@l0cke/cbn-mobile&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Install app inside Expo Go wrapper&lt;/li&gt;
&lt;li&gt;Open "Settings" tab:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flstlkk29qojbp9hm5fqa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flstlkk29qojbp9hm5fqa.png" alt="Empty settings"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add settings with "+" button, like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd6xrqwcirvf6wd78tlah.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd6xrqwcirvf6wd78tlah.png" alt="new settings to localserver"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select "Connect" to server:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fktmkjcez16t2zmrdcbic.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fktmkjcez16t2zmrdcbic.png" alt="Connect to server"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From command line on laptop, where sever is running send some "simulated" temperatures with curl:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl --location --request POST 'http://localhost:8080/api/temperature' \&lt;br&gt;
--header 'Authorization: Basic c2Vuc29yOnNlbnNvcg==' \&lt;br&gt;
--header 'Content-Type: application/json' \&lt;br&gt;
--header 'Cookie: JSESSIONID=6FA8E64A552CDB55F455652A8C4BEEA3' \&lt;br&gt;
--data-raw '{&lt;br&gt;
    "sensor":"bedroom",&lt;br&gt;
    "value": 20.44&lt;br&gt;
}'&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;You should see on "Temperature" tab incoming message, something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj18ek8154ldsvvkhbzjg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj18ek8154ldsvvkhbzjg.png" alt="Incoming measurements"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope you will like this small temperature monitoring station. &lt;/p&gt;

&lt;p&gt;Additionally in server repo, there is a folder esp8266 where are some samples of arduino code to apply to your arduino ESP8266 board connected to DallasTemperature sensor, which can be used to send real measurements to you server. It's currently used also at my home since 1 week - new kid was fully downloaded on 18.12, and I had to write some small app to monitor temperature in her bedroom, which will eventually alarm, when kid's bedroom is getting too cold or overheated (that's why it's called "cold bedroom notifier"). And that's the use case which was important to me. I bet you can find couple of other use cases as well.&lt;/p&gt;

&lt;p&gt;Best wishes to All of You in the New Year!&lt;br&gt;
Max&lt;/p&gt;

</description>
      <category>atlashackathon</category>
    </item>
  </channel>
</rss>
