{"action":"created","comment":{"url":"https://api.github.com/repos/solettaproject/soletta/pulls/comments/68060550","id":68060550,"diff_hunk":"@@ -0,0 +1,33 @@\n+#!/usr/bin/env sol-fbp-runner\n+\n+# This file is part of the Soletta™ Project\n+#\n+# Copyright (C) 2015 Intel Corporation. All rights reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# This program will print to console a list of all network services\n+#\n+# Examples:\n+#  * connect or disconnect network services\n+#    $ ./network-connect.fbp\n+\n+conn(netctl/service:name=\"Guest\")\n+stat(netctl/state:name=\"Guest\")\n+tick(constant/empty)\n+\n+tick OUT -> TRIGGER stat OUT -> IN _(console:prefix=\"state: \")\n+tick OUT -> CONNECT conn\n+conn OUT -> IN _(console)","path":"src/samples/flow/netctl/network-connect.fbp","position":31,"original_position":31,"commit_id":"a9c554cdaf74059f3423a50a49f032a3e6341cde","original_commit_id":"a9c554cdaf74059f3423a50a49f032a3e6341cde","user":{"login":"barbieri","id":1838,"avatar_url":"https://avatars.githubusercontent.com/u/1838?v=3","gravatar_id":"","url":"https://api.github.com/users/barbieri","html_url":"https://github.com/barbieri","followers_url":"https://api.github.com/users/barbieri/followers","following_url":"https://api.github.com/users/barbieri/following{/other_user}","gists_url":"https://api.github.com/users/barbieri/gists{/gist_id}","starred_url":"https://api.github.com/users/barbieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbieri/subscriptions","organizations_url":"https://api.github.com/users/barbieri/orgs","repos_url":"https://api.github.com/users/barbieri/repos","events_url":"https://api.github.com/users/barbieri/events{/privacy}","received_events_url":"https://api.github.com/users/barbieri/received_events","type":"User","site_admin":false},"body":"you shouldn't need the TRIGGER... but you can do a timer if you wish to force that. The initial trigger shouldn't be needed, do that on node open function.\r\n\r\nAlso, take the AP name from the cmdline: https://github.com/solettaproject/soletta/blob/master/src/samples/flow/power-supply/power-supply-info.fbp","created_at":"2016-06-22T14:15:53Z","updated_at":"2016-06-22T14:15:53Z","html_url":"https://github.com/solettaproject/soletta/pull/2193#discussion_r68060550","pull_request_url":"https://api.github.com/repos/solettaproject/soletta/pulls/2193","_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/comments/68060550"},"html":{"href":"https://github.com/solettaproject/soletta/pull/2193#discussion_r68060550"},"pull_request":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/2193"}}},"pull_request":{"url":"https://api.github.com/repos/solettaproject/soletta/pulls/2193","id":74740737,"html_url":"https://github.com/solettaproject/soletta/pull/2193","diff_url":"https://github.com/solettaproject/soletta/pull/2193.diff","patch_url":"https://github.com/solettaproject/soletta/pull/2193.patch","issue_url":"https://api.github.com/repos/solettaproject/soletta/issues/2193","number":2193,"state":"open","locked":false,"title":"Add Netctl node type and samples for network control","user":{"login":"guchaojie","id":4715382,"avatar_url":"https://avatars.githubusercontent.com/u/4715382?v=3","gravatar_id":"","url":"https://api.github.com/users/guchaojie","html_url":"https://github.com/guchaojie","followers_url":"https://api.github.com/users/guchaojie/followers","following_url":"https://api.github.com/users/guchaojie/following{/other_user}","gists_url":"https://api.github.com/users/guchaojie/gists{/gist_id}","starred_url":"https://api.github.com/users/guchaojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guchaojie/subscriptions","organizations_url":"https://api.github.com/users/guchaojie/orgs","repos_url":"https://api.github.com/users/guchaojie/repos","events_url":"https://api.github.com/users/guchaojie/events{/privacy}","received_events_url":"https://api.github.com/users/guchaojie/received_events","type":"User","site_admin":false},"body":"Add netctl fbp node and samples include list services, connect or disconnect service,\r\n\r\nget service state, turn on or off radios\r\n\r\nChange-Id: I7f00a8ce849aed185e49e3b6ac54b66d30384ffd\r\nSigned-off-by: guchaojie <chao.jie.gu@intel.com>","created_at":"2016-06-22T08:11:46Z","updated_at":"2016-06-22T14:15:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"860b0884fe330f733a9f26ea492da586c8cd65c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/solettaproject/soletta/pulls/2193/commits","review_comments_url":"https://api.github.com/repos/solettaproject/soletta/pulls/2193/comments","review_comment_url":"https://api.github.com/repos/solettaproject/soletta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solettaproject/soletta/issues/2193/comments","statuses_url":"https://api.github.com/repos/solettaproject/soletta/statuses/a9c554cdaf74059f3423a50a49f032a3e6341cde","head":{"label":"guchaojie:master","ref":"master","sha":"a9c554cdaf74059f3423a50a49f032a3e6341cde","user":{"login":"guchaojie","id":4715382,"avatar_url":"https://avatars.githubusercontent.com/u/4715382?v=3","gravatar_id":"","url":"https://api.github.com/users/guchaojie","html_url":"https://github.com/guchaojie","followers_url":"https://api.github.com/users/guchaojie/followers","following_url":"https://api.github.com/users/guchaojie/following{/other_user}","gists_url":"https://api.github.com/users/guchaojie/gists{/gist_id}","starred_url":"https://api.github.com/users/guchaojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guchaojie/subscriptions","organizations_url":"https://api.github.com/users/guchaojie/orgs","repos_url":"https://api.github.com/users/guchaojie/repos","events_url":"https://api.github.com/users/guchaojie/events{/privacy}","received_events_url":"https://api.github.com/users/guchaojie/received_events","type":"User","site_admin":false},"repo":{"id":48015050,"name":"soletta","full_name":"guchaojie/soletta","owner":{"login":"guchaojie","id":4715382,"avatar_url":"https://avatars.githubusercontent.com/u/4715382?v=3","gravatar_id":"","url":"https://api.github.com/users/guchaojie","html_url":"https://github.com/guchaojie","followers_url":"https://api.github.com/users/guchaojie/followers","following_url":"https://api.github.com/users/guchaojie/following{/other_user}","gists_url":"https://api.github.com/users/guchaojie/gists{/gist_id}","starred_url":"https://api.github.com/users/guchaojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guchaojie/subscriptions","organizations_url":"https://api.github.com/users/guchaojie/orgs","repos_url":"https://api.github.com/users/guchaojie/repos","events_url":"https://api.github.com/users/guchaojie/events{/privacy}","received_events_url":"https://api.github.com/users/guchaojie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guchaojie/soletta","description":"Soletta Project is a framework for making IoT devices.  With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.  ","fork":true,"url":"https://api.github.com/repos/guchaojie/soletta","forks_url":"https://api.github.com/repos/guchaojie/soletta/forks","keys_url":"https://api.github.com/repos/guchaojie/soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guchaojie/soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guchaojie/soletta/teams","hooks_url":"https://api.github.com/repos/guchaojie/soletta/hooks","issue_events_url":"https://api.github.com/repos/guchaojie/soletta/issues/events{/number}","events_url":"https://api.github.com/repos/guchaojie/soletta/events","assignees_url":"https://api.github.com/repos/guchaojie/soletta/assignees{/user}","branches_url":"https://api.github.com/repos/guchaojie/soletta/branches{/branch}","tags_url":"https://api.github.com/repos/guchaojie/soletta/tags","blobs_url":"https://api.github.com/repos/guchaojie/soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guchaojie/soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guchaojie/soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/guchaojie/soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guchaojie/soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/guchaojie/soletta/languages","stargazers_url":"https://api.github.com/repos/guchaojie/soletta/stargazers","contributors_url":"https://api.github.com/repos/guchaojie/soletta/contributors","subscribers_url":"https://api.github.com/repos/guchaojie/soletta/subscribers","subscription_url":"https://api.github.com/repos/guchaojie/soletta/subscription","commits_url":"https://api.github.com/repos/guchaojie/soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/guchaojie/soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/guchaojie/soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/guchaojie/soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/guchaojie/soletta/contents/{+path}","compare_url":"https://api.github.com/repos/guchaojie/soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guchaojie/soletta/merges","archive_url":"https://api.github.com/repos/guchaojie/soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guchaojie/soletta/downloads","issues_url":"https://api.github.com/repos/guchaojie/soletta/issues{/number}","pulls_url":"https://api.github.com/repos/guchaojie/soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/guchaojie/soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/guchaojie/soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guchaojie/soletta/labels{/name}","releases_url":"https://api.github.com/repos/guchaojie/soletta/releases{/id}","deployments_url":"https://api.github.com/repos/guchaojie/soletta/deployments","created_at":"2015-12-15T02:39:45Z","updated_at":"2016-01-15T03:23:46Z","pushed_at":"2016-06-22T10:41:12Z","git_url":"git://github.com/guchaojie/soletta.git","ssh_url":"git@github.com:guchaojie/soletta.git","clone_url":"https://github.com/guchaojie/soletta.git","svn_url":"https://github.com/guchaojie/soletta","homepage":"http://solettaproject.org","size":20880,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"solettaproject:master","ref":"master","sha":"a28990971f0a9a4acc5326955dcff0b0f06a36b1","user":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":37087063,"name":"soletta","full_name":"solettaproject/soletta","owner":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solettaproject/soletta","description":"Soletta Project is a framework for making IoT devices.  With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.  ","fork":false,"url":"https://api.github.com/repos/solettaproject/soletta","forks_url":"https://api.github.com/repos/solettaproject/soletta/forks","keys_url":"https://api.github.com/repos/solettaproject/soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solettaproject/soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solettaproject/soletta/teams","hooks_url":"https://api.github.com/repos/solettaproject/soletta/hooks","issue_events_url":"https://api.github.com/repos/solettaproject/soletta/issues/events{/number}","events_url":"https://api.github.com/repos/solettaproject/soletta/events","assignees_url":"https://api.github.com/repos/solettaproject/soletta/assignees{/user}","branches_url":"https://api.github.com/repos/solettaproject/soletta/branches{/branch}","tags_url":"https://api.github.com/repos/solettaproject/soletta/tags","blobs_url":"https://api.github.com/repos/solettaproject/soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solettaproject/soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solettaproject/soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/solettaproject/soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solettaproject/soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/solettaproject/soletta/languages","stargazers_url":"https://api.github.com/repos/solettaproject/soletta/stargazers","contributors_url":"https://api.github.com/repos/solettaproject/soletta/contributors","subscribers_url":"https://api.github.com/repos/solettaproject/soletta/subscribers","subscription_url":"https://api.github.com/repos/solettaproject/soletta/subscription","commits_url":"https://api.github.com/repos/solettaproject/soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/solettaproject/soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/solettaproject/soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/solettaproject/soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/solettaproject/soletta/contents/{+path}","compare_url":"https://api.github.com/repos/solettaproject/soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solettaproject/soletta/merges","archive_url":"https://api.github.com/repos/solettaproject/soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solettaproject/soletta/downloads","issues_url":"https://api.github.com/repos/solettaproject/soletta/issues{/number}","pulls_url":"https://api.github.com/repos/solettaproject/soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/solettaproject/soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/solettaproject/soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solettaproject/soletta/labels{/name}","releases_url":"https://api.github.com/repos/solettaproject/soletta/releases{/id}","deployments_url":"https://api.github.com/repos/solettaproject/soletta/deployments","created_at":"2015-06-08T19:13:18Z","updated_at":"2016-06-21T09:52:58Z","pushed_at":"2016-06-22T10:41:13Z","git_url":"git://github.com/solettaproject/soletta.git","ssh_url":"git@github.com:solettaproject/soletta.git","clone_url":"https://github.com/solettaproject/soletta.git","svn_url":"https://github.com/solettaproject/soletta","homepage":"http://solettaproject.org","size":29767,"stargazers_count":105,"watchers_count":105,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":119,"forks":85,"open_issues":119,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/2193"},"html":{"href":"https://github.com/solettaproject/soletta/pull/2193"},"issue":{"href":"https://api.github.com/repos/solettaproject/soletta/issues/2193"},"comments":{"href":"https://api.github.com/repos/solettaproject/soletta/issues/2193/comments"},"review_comments":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/2193/comments"},"review_comment":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solettaproject/soletta/pulls/2193/commits"},"statuses":{"href":"https://api.github.com/repos/solettaproject/soletta/statuses/a9c554cdaf74059f3423a50a49f032a3e6341cde"}}}}
{"actor":{"display_login":"barbieri"}}