In our previous blog entry, we described how we built a connected weather station in a garden, using the NoCAN IoT platform. Since that example kind of left out the 'I' in 'IoT', we will now describe how we connected our weather station to the Internet, thanks to the blynk platform. Even miles away from home, we can get real-time temperature and humidity readings from our testbed garden with just a smartphone :-)
First, we installed the blynk application from our favorite mobile app store following the detailed instructions provided on the blynk website. At the end of this process, we received our blynk auth token, a very important piece of information needed to connect a NoCAN network to the blynk platform.
Configuring nocanc
The nocanc tool can be used as a gateway between a NoCAN network and a blynk server.
The simplest way to configure nocanc
for blynk is to edit the configuration file which is ~/.nocanc.conf
on Unix-like systems and %userprofile%\_nocanc.conf
on MS-Windows systems.
See our tutorial for more details on the installation and configuration of nocanc
.
We decided to use two blynk virtual pins: virtual pin 2 for temperature readings and virtual pin 3 for humidity. These values were chosen arbitrarily: we just need to match the values selected in the blynk mobile application as described further down. The content of the corresponding configuration file is as follows.
event-server = ... auth-token = ... [blynk] blynk-token = "<your blink auth token>" [[blynk.readers]] pin=2 channel="bme280/temperature" [[blynk.readers]] pin=3 channel="bme280/humidity"
As explained in our tutorial, the variables event-server
and auth-token
need to be assigned to values corresponding to the nocand
network manager. More importantly here, <your blink auth token>
needs to be replaced with the actual value of the blynk auth token.
Now, assuming that nocand
is already running, we can enable our gateway between our NoCAN network and the blynk platform by simply running nocanc blynk
which then provides an output similar to the example below:
$ go run nocanc.go blynk There are 0 blynk writers. There are 2 blynk readers. 2018/05/14 22:12:32 Starting goblynk 2018/05/14 22:12:32 Connected to blynk-cloud.com:8442 2018/05/14 22:12:32 Sending message {cmd=2 id=1 len=32}:{"0123456789abcdef0123456789abcdef"} 2018/05/14 22:12:32 Waiting data to read 2018/05/14 22:12:32 Received {cmd=0 id=1 len=200}:{} 2018/05/14 22:12:32 Connected and authenticated to blynk-cloud.com:8442, connection cycle 1 2018/05/14 22:12:32 Waiting data to read 2018/05/14 22:12:32 Sending message {cmd=20 id=2 len=10}:{"vw","2","24.75"} 2018/05/14 22:12:32 Sending message {cmd=20 id=3 len=10}:{"vw","3","58.72"} ...
On the mobile.
In the blynk app on our mobile, we created a new project and gaive it a random name (test
).
In the Choose device dropdown, we selected Generic Board, though you can pretty much select any device here since we will use what is called "virtual pins" and we are not really constrained by hardware limitations.
Next, in the application, we added a Labelled Value as shown listed in the screenshot below.
We gave it the label "temperature" and we associated it with the input pin V2 to match the nocanc configuration previously described. We customized the display to show "°C" after the value since we collect temperature in Celcius degrees. Finally, we selected the default PUSH as the reading rate.
Next, we moved to displaying humidity. Again we added a Labelled Value. We gave it the label "humidity" and we associated it with the input pin V3 just as we did in the nocanc configuration file. We customized the display to show "%" after the value. Finally, we selected the default PUSH as the reading rate, as we did before.
We then launched our test
application on the mobile phone and watched the temperature and humidity display live.
The data gets updated in real-time for as long as you have both nocand
and nocanc blynk
running.
Conclusion
Thanks to the optional blynk gateway built in the nocanc
tool, connecting a NoCAN network to the internet is very simple.
In fact, it probably takes 3 times longer to read this article than to connect a NoCAN network to a smartphone.
We will soon release the source code of our blynk Golang library, which might be useful to others who want to interface their Go application with blynk. If you don't know what Go is, give it a try! It's a great programming language that allowed us to build an application mixing low-level SPI communications with a microcontroller along with TCP/IP sockets and lightweight multi-threading.
To stay updated on the NoCAN project, don't forget to follow us on Twitter or on our Facebook page.
Comments
Hello omzlo.com admin,
Dominate the Google Maps rankings!
Explore our "Google Maps Ranking" service and ensure that your business is at the top of local search results. Attract more customers and gain the competitive edge you need.
Don't miss out on the opportunity to establish your market presence! Access now and purchase our "Google Maps Ranking" service for guaranteed success!
From here -> https://cutt.ly/twadpxi3
Best regards, Paxton
Great Britain, NA, Giffordland, Ka24 6pf, 48 Park Terrace
To stop any further communication through your website form, Please reply with subject: Unsubscribe omzlo.com
Cathryn Paxton, over 1 year agoHey,
I’ll get right to it. I can get you on 3 podcasts/mo, and get you 15 professionally edited short form videos for social media (from the podcast interview), and then get you featured in 3 online publications/mo all done for you.
We’ve helped 33 clients do just that to build their thought leadership in their specific industry which has helped them:
Interested? We can chat here:
https://calendly.com/empathyfirm/30-min-meeting
Best, Grant
PS - I won’t see your response on here so if you have a question, please book a call (:
N6565 Shorewood Hills Rd. Lake Mills WI, 53551 Email unsubnow1@gmail.com with your website to “UNSUB” meaning you will not hear from me again.
Grant Lira, 12 months agoGreetings,
I'm Tony, a skilled English SEO copywriter and content writer. My expertise lies in creating engaging blogs, articles, e-commerce product descriptions, SEO content, website content, business service descriptions, newsletter content, brochures, proofreading, social media captions, LinkedIn content, and SOPs.
My pricing is USD 40 per 1000 words of content. If you're short on time to strategize your content, we can assist you with that.
Feel free to reach out via email at Contentwriting011994@outlook.com for any ongoing needs.
Best regards, Tony
Tony, 8 months agoHi Dear
For more info Go at: https://bit.ly/3unyZPh
Kandace Frisina, 4 months agoHi there,
My name is Shahar and I'm the founder of Rotev Marketing. I'm reaching out because Webflow could be the perfect platform for representing your brand online.
With Webflow's visual design tools, you can craft custom sites that tell your story and truly capture your brand's personality. Dynamic features like animations and interactive elements make browsing more engaging.
Many growing companies are choosing Webflow for its flexibility and performance. I'd love to show you samples of our work and discuss how we could develop an impressive and eye-catching website for your business which will help you attract more customers. I'd be happy to give you a FREE 15-minute call at no cost to discuss your website goals and needs.
Reply "Yes" if you're interested in a 15 minute intro call to explore building your presence with Webflow.
Warm Regards, Shahar Zohar info@collab.rotev.io
Jacki Tallis, 3 months agoHi Omzlo,
That’s a bold question… But it's only logical.
Especially since just today, Seyi opened the doors to his new AI Sonic App…
It’s the only app that can allow you to build a “music, podcast, & live radio” hypermedia streaming platform that lets you stream over 100 million songs, playlists, genre, radio, and podcasts…
=>>> https://sonic-music-streaming-app.blogspot.com/
And then fill it with hundreds of monthly paying customers… …without paying for ads, or doing SEO.
They leverage a library with over 600,000,000 (six hundred million) paying customers
To fill your platform in just minutes…
It literally does all the work for you, and gives you a Spotify-killer platform in just a matter of seconds…
You don’t need to code anything You don’t need to design anything You don’t need to record or edit anything You don’t need to pay any royalties You don’t need to market anything
All you need is to just enter a keyword, and that’s it…
=>>> https://sonic-music-streaming-app.blogspot.com/
Sonic will give you a profitable Hypermedia streaming platform that will make you thousands of dollars monthly…
Best part? Sonic will also transform your Hypermedia streaming platform into iOS and Android mobile apps at the click of a button… Giving you extra exposure to billions of potential customers easily…
Right now, you can create your account with Sonic, and get unheard-of discount of 94%...
Not just that, you will be able to also secure your copy of a bonus bundle that Seyi prepared for you…
Worth over $14,000
=>>> https://sonic-music-streaming-app.blogspot.com/
Cheers, [Mira Houchens]
Mira Houchens, 3 months agoHi Omzlo,
That’s a bold question… But it's only logical.
Especially since just today, Seyi opened the doors to his new AI Sonic App…
It’s the only app that can allow you to build a “music, podcast, & live radio” hypermedia streaming platform that lets you stream over 100 million songs, playlists, genre, radio, and podcasts…
=>>> https://sonic-music-streaming-app.blogspot.com/
And then fill it with hundreds of monthly paying customers… …without paying for ads, or doing SEO.
They leverage a library with over 600,000,000 (six hundred million) paying customers
To fill your platform in just minutes…
It literally does all the work for you, and gives you a Spotify-killer platform in just a matter of seconds…
You don’t need to code anything You don’t need to design anything You don’t need to record or edit anything You don’t need to pay any royalties You don’t need to market anything
All you need is to just enter a keyword, and that’s it…
=>>> https://sonic-music-streaming-app.blogspot.com/
Sonic will give you a profitable Hypermedia streaming platform that will make you thousands of dollars monthly…
Best part? Sonic will also transform your Hypermedia streaming platform into iOS and Android mobile apps at the click of a button… Giving you extra exposure to billions of potential customers easily…
Right now, you can create your account with Sonic, and get unheard-of discount of 94%...
Not just that, you will be able to also secure your copy of a bonus bundle that Seyi prepared for you…
Worth over $14,000
=>>> https://sonic-music-streaming-app.blogspot.com/
Cheers, [Antoine Best]
Antoine Best, 3 months agoHey Omzlo,
Are you dreaming of financial freedom? I’ve been in your shoes. But now, I’m waking up every day to $1,233 in passive income—effortlessly.
How? It’s all thanks to AI Traffic Secrets —a powerful collection of AI tools and training that skyrocketed my business. These tools work seamlessly, automating my traffic, boosting engagement, and driving consistent income.
=>> https://ai-traffic-secrets.blogspot.com/
The best part? I use these tools every day. They’re designed to be simple and effective, so you can start generating results right away—no tech expertise required!
If you’re ready to unleash the full potential of AI and make passive income while you sleep, check out AI Traffic Secrets today!
=>> https://ai-traffic-secrets.blogspot.com/
Cheers,
Thurman Serisier, 2 months ago[Thurman Serisier]
Hey Omzlo,
Are you dreaming of financial freedom? I’ve been in your shoes. But now, I’m waking up every day to $1,233 in passive income—effortlessly.
How? It’s all thanks to AI Traffic Secrets —a powerful collection of AI tools and training that skyrocketed my business. These tools work seamlessly, automating my traffic, boosting engagement, and driving consistent income.
=>> https://ai-traffic-secrets.blogspot.com/
The best part? I use these tools every day. They’re designed to be simple and effective, so you can start generating results right away—no tech expertise required!
If you’re ready to unleash the full potential of AI and make passive income while you sleep, check out AI Traffic Secrets today!
=>> https://ai-traffic-secrets.blogspot.com/
Cheers,
Kristopher Williams, 2 months ago[Kristopher Williams]
Hello,
Are you the correct contact to discuss growing your business’s revenue?
With Digital360's done-for-you service, companies around the world have experienced incredible growth through tried-and-true digital strategies.
Within a year, we helped a medical device brand boost traffic by 20,000%, raising their monthly sales from $48,000 to $735,000—an additional $8.3 million in yearly sales.
Do you think you could benefit from this? https://bit.ly/BoostWith360
Warm Regards, Jason Feemster Digital360 Team
Dirk Nava, about 1 month agoHello there,
I focus in creating high-converting websites using Webflow, and here’s the best part: if you’re not completely satisfied with the website we design for you, you won’t have to pay—simple as that!
If you’d like to get more information or see samples of our work, just reply to this email. We can discuss how a modern website can help your business grow.
Looking forward to hearing from you!
Kind Regards, Shahar Zohar info@rotevcolab.com
If you no longer want receiving notifications from us in the future, please respond here with the phrase: “No thanks”.
Myra Lozano, 28 days agoBoost Your Venture with Shopify - Only $1/Month for 3 Months!
Bring your ideas to life with Shopify’s special offer: Sign up for a no-cost trial and get three months on Shopify for just $1/month on specific plans. It's the ideal opportunity to transition or launch your brand without initial investment!
Why Shopify?
Shopify is a comprehensive solution that lets you create, customize, and control your online store with ease. Sell across multiple channels—on your website, social networks, or in-person.
With Shopify, you can: - Effortlessly create a stunning online store - Sell everywhere: web, on mobile, social media, and more - Handle inventory, payments, and shipping from any device
Shopify manages software updates and maintenance, so you can concentrate on expanding your business.
-- Get started for $1/month: https://bit.ly/shopify-free-promo
Don’t miss this chance to launch your dream business with Shopify’s amazing offer!
Hawk Shaw, 21 days ago159 comments triggered our SPAM filter and will be reviewed before publication.
Leave a comment