Sponsored Content
Top Forums Programming Wuhan Coronavirus Status for China - Rapid Prototype Blynk App with ESP8266 Post 303043587 by Neo on Saturday 1st of February 2020 08:18:43 AM
Old 02-01-2020
Update:

I know why Blynk auto-deleted the Blynk app on one of my iPhones. The reason is about "money". Blynk wants our money, as soon as you get beyond a "toy" app with a few data variables. If you build any app of any substance, you will pay for it.

Blynk gives 2000 tiny toy credits for a user to build an app. But that means across all devices on same email account. So because I was running (1) a small six data point service monitoring app and (2) the Wuhan virus stats app with for data points; Blynk synced my two iPhones and deleted the small server monitoring app without warning and without saving the data for the app anywhere.

However, you can avoid having Blynk auto-delete your apps like this by having a different email for each app, LOL.

Amazing! Blynk considers deleting your Blynk app without warning or saving the app before they delete it as "their business model". Lesson Learned!

BEWARE.

My goal was to build a free public service application for those concerned about the looming coronavirus pandemic in China. I learned a lot about Blynk in the process, obviously I cannot build anything more than a "toy app" before Blynk will require coin. I am a bit in shock about this; but then again, what do we expect from corporations these days? They are all in it for the big money, right?!
This User Gave Thanks to Neo For This Post:
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Function prototype declaration

Hi All, I have the script as below #!bin/bash let k=9 if then echo "Start" Hello echo "End" else echo "failed" fi function Hello() { echo "hello !!!!" } I got the below error : (4 Replies)
Discussion started by: Balasankar
4 Replies

2. Programming

Embarcadero Rapid SQL query for dependency

Team I am using Embarcadero Rapid SQL V8 . When we right click on any procedure/table/view and open the contents. It has dependencies tab, which tell what all are the dependents used . My question is how does this information captured in backend to retrieve the dependency objects in... (0 Replies)
Discussion started by: Perlbaby
0 Replies

3. What is on Your Mind?

Major Changes in New UserCP (v0.63) Prototype

Regarding the latest version of the UserCP prototype (version 0.63) I have made a lot of major changes, including Added a "Posts Timeline" table for the recent posts, complimenting the non-table version earlier, which has been moved off the main menu (link at the bottom of the table). Added a... (4 Replies)
Discussion started by: Neo
4 Replies

4. Programming

NodeMCU ESP8266 Blynk SSL Application for Linux Server Load Averages

Here is a useful SSL (HTTPS) application for anyone with a remote Linux server they want to keep an eye on using Blynk and the NodeMCU ESP8266. This little app also works (have tested as well) on the WeMos D1 ESP8266 Arduino board. The NodeMCU setup could not be easier, just find a... (8 Replies)
Discussion started by: Neo
8 Replies

5. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies

6. Programming

A Slightly Better NTP Client for the ESP8266

Was not really happy with the NTP clients for the ESP8266 because, after a few years of game engine programming, I am not a fan of a lot of code and delays in the main loop, so here is a "slightly better NTP client" for the ESP8266. In a nutshell, instead of having a delay in the main loop as a... (1 Reply)
Discussion started by: Neo
1 Replies
App::Cmd::Tutorial(3pm) 				User Contributed Perl Documentation				   App::Cmd::Tutorial(3pm)

NAME
App::Cmd::Tutorial - getting started with App::Cmd VERSION
version 0.318 DESCRIPTION
App::Cmd is a set of tools designed to make it simple to write sophisticated command line programs. It handles commands with multiple subcommands, generates usage text, validates options, and lets you write your program as easy-to-test classes. An App::Cmd-based application is made up of three main parts: the script, the application class, and the command classes. The script is the actual executable file run at the command line. It can generally consist of just a few lines: #!/usr/bin/perl use YourApp; YourApp->run; All the work of argument parsing, validation, and dispatch is taken care of by your application class. The application class can also be pretty simple, and might look like this: package YourApp; use App::Cmd::Setup -app; 1; When a new application instance is created, it loads all of the command classes it can find, looking for modules under the Command namespace under its own name. In the above snippet, for example, YourApp will look for any module with a name starting with "YourApp::Command::". We can set up a simple command class like this: package YourApp::Command::initialize; use YourApp -command; 1; Now, a user can run this command, but he'll get an error: $ yourcmd initialize YourApp::Command::initialize does not implement mandatory method 'execute' Oops! This dies because we haven't told the command class what it should do when executed. This is easy, we just add some code: sub execute { my ($self, $opt, $args) = @_; print "Everything has been initialized. (Not really.) "; } Now it works: $ yourcmd initialize Everything has been initialized. (Not really.) The arguments to the execute method are the parsed options from the command line (that is, the switches) and the remaining arguments. With a properly configured command class, the following invocation: $ yourcmd reset -zB --new-seed xyzxy foo.db bar.db might result in the following data: $opt = { zero => 1, no_backup => 1, new_seed => 'xyzzy', }; $args = [ qw(foo.db bar.db) ]; Arguments are processed by Getopt::Long::Descriptive (GLD). To customize its argument processing, a command class can implement a few methods: "usage_desc" provides the usage format string; "opt_spec" provides the option specification list; "validate_args" is run after Getopt::Long::Descriptive, and is meant to validate the $args, which GLD ignores. The first two methods provide configuration passed to GLD's "describe_options" routine. To improve our command class, we might add the following code: sub usage_desc { "yourcmd %o [dbfile ...]" } sub opt_spec { return ( [ "skip-refs|R", "skip reference checks during init", ], [ "values|v=s@", "starting values", { default => [ 0, 1, 3 ] } ], ); } sub validate_args { my ($self, $opt, $args) = @_; # we need at least one argument beyond the options; die with that message # and the complete "usage" text describing switches, etc $self->usage_error("too few arguments") unless @$args; } TIPS
o Delay using large modules using autouse, Class::Autouse or "require" in your commands to save memory and make startup faster. Since only one of these commands will be run anyway, there's no need to preload the requirements for all of them. o To add a "--help" option to all your commands create a base class like: package MyApp::Command; use App::Cmd::Setup -command; sub opt_spec { my ( $class, $app ) = @_; return ( [ 'help' => "This usage screen" ], $class->options($app), ) } sub validate_args { my ( $self, $opt, $args ) = @_; if ( $opt->{help} ) { my ($command) = $self->command_names; $self->app->execute_command( $self->app->prepare_command("help", $command) ); exit; } $self->validate( $opt, $args ); } Where "options" and "validate" are "inner" methods which your command subclasses implement to provide command-specific options and validation. o Add a "description" method to your commands for more verbose output from the built-in "App::Cmd::Command::help|help" command. sub description { return "The initialize command prepares ..."; } o To let your users configure default values for options, put a sub like sub config { my $app = shift; $app->{config} ||= TheLovelyConfigModule->load_config_file(); } in your main app file, and then do something like: sub opt_spec { my ( $class, $app ) = @_; my ( $name ) = $class->command_names; return ( [ 'blort=s' => "That special option", { default => $app->config->{$name}{blort} || $fallback_default }, ], ); } Or better yet, put this logic in a superclass and process the return value from an "inner" method (see previous tip for an example). AUTHOR
Ricardo Signes <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-05-05 App::Cmd::Tutorial(3pm)
All times are GMT -4. The time now is 08:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy