TC2.21 - IOT Applications with Social Media Actions, and cultural scenarious

×

Warning message

  • You can't delete this newsletter because it has not been sent to all its subscribers.
  • You can't delete this newsletter because it has not been sent to all its subscribers.

Test Case Title

TC2.21 - IOT Applications with Social Media Actions, and cultural scenarious

Goal

I can:

  • Create cultural and social scenarious
  • Get information of a twitter channel to Twitter Vigilance
  • Use this information as a microservice
  • The following functionalities are available only for specific Snap4city users with specific privileges.
  • create dynamic Dashboard by exploiting twitter data
  • exploit twitter data on IOT App and thus I can do some Data Analytics

Prerequisites

Using a PC or Mobile with a web browser.

Simple skill on use Blocks on Nodered.

Expected successful result

Obtain information about the desired channel, exploiting social media data.

Steps

 

 

Snap4City allows setting up in connection of my IOT Application and Dashboard:

  • social scenarios such as:
    • the users may share their personal data regarding position, intention, glucose, movements, etc. to their (i) friends to meet each other in the downtown, (ii) parents to be safer, (iii) doctor to be controlled, etc.
    • leaving MyAnnotation about POI regarding discomfort of the service or appreciation, sharing with other people or making public
    • creation of an IOT Application monitoring an area, a Garden, a school, a parking lot, etc., and making publicly accessible the related Dashboard.
      • Eventually posting on Twitter/Facebook in the case of  critical conditions
      • Accepting some registration on a form and posting Telegram to subscribers.
    • Collecting opinions about a city are for restoring and changing its usage, reopening a shops, painting / restoring a bench, etc.
    • Collecting alerts regarding critical and/or emergency conditions in which a number of people are involved in a given area/position
  • cultural scenarios such as:
    • living a geolocated comment on MyAnnotation or on MyPersonalData regarding the appreciation of an event, sharing comment with public or community
    • collecting data regarding specific POIs and publishing this data on DataGate to share with the whole city and community
    • creation of an IOT Application monitoring a cultural aspect of the city and making publicly accessible the information on a related Dashboard,
      • Eventually posting on Twitter/Facebook in the case of  critical conditions
      • Accepting some registration on a form and posting Telegram to subscribers.

The solution may send to the city users: suggestions, hints, and notifications on the basis of their preferences, profiles, habits, etc., thus stimulating virtuous behaviour in the city.  (see paper [engagement])

  1. With the microservices you can request information through the API Twitter Vigilance on channels that are monitored by this tool. In the picture below you can see the channels that are monitored daily by Twitter Vigilance: Https://www.disit.org/tv  or Https://www.disit.org/rttv

  1. Currently two microservices have been developed that can read some information from Twitter Vigilance. Drag and drop the nodes“twitter-last-channel” and “twitter-last-tweet” under the menu S4CSocialMedia:

  1. The first node returns a list with details of the 5 most recent tweets that have been collected in the Twitter Vigilance RT Channel. The second node retrieves the number of tweet and retweet counts, as well as the date to which the counts are related, for the Twitter Vigilance RT Channel.
  2. The results of such microservices can for example be sent to a panel on a dashboard to monitor a particular channel to see if something abnormal is happening about the channel being controlled (environmental disaster, accidents, etc.).
  3. The configuration tab of “twitter-last-channel” can be filled like this:

  1. And return a response with this information

  1. The configuration tab of “twitter-last-tweet” can be filled like this:

  1. With the usual password of the user snap4city and return a response with this information

 In June 2020, 4 new services on Twitter Vigilance integration with IOT App has been added especially to enable to access at the Twitter Vigilance HeritData Real Time. Please see the Video with the demonstration:

The access to data has been realized by creating 4 custom blocks to be used into IOT Applications. Similar services can be created for any version and instance of the Twitter Vigilance platform, please ask or do it from yourself.

They are not directly integrated into the libraries of Snap4City but can be loaded from the custom nodes.

Singularly selecting and installing them in your IOT App.

Each of them presents a similar behaviour. Those addressing the channels/search allow you to request the number of Tweets (TW) and ReTweets (RTW) that have been counted in the channel/search of the Twitter Vigilance platform.

The resulting data are in the form:

In the following flow we have collected the channel data from 5 pilots of HeritData in the last 7 days and posted on a multigraph dashboard.

The data are updated every hour and the results can be observed on:

https://www.snap4city.org/dashboardSmartCity/view/index.php?iddasboard=Mjc3NQ==