2016년 12월 7일 수요일

Esp8266 Wifi Module with App Inveter and Arduino


Is it possible to sent/receive data from apps inventor to the Internet and receive/sent the data from the Internet by the Arduino by using ESP8266  ??

-- 
Yes you can do that, Have a look at this youtube link!! https://www.youtube.com/watch?v=P3r8o-bGA24  this might help you to get started! And one more thing please search the related questions in the forum before you post your questions.

-- 

-- 


{AppyBuilder} Digest for appybuilder@googlegroups.com - 21 updates in 5 topics



• Parsing Error - 11 Updates
• News: Future Release - 7 Updates
• RESIZE Formula ? - 1 Update
• AdMob challenge - 1 Update



"Tim S." <tjstafford01@gmail.com>: Dec 04 04:40PM -0800 

On my V20 I receive a Parsing error. I've not been on here for a long time
and not experienced this issue before and am wondering if there is issues
with nougat? I've tried downloading a new appdirectly, tested with an old
app even built an app with no blocks - only design I've also verified that
no special characters are in the screen name and have not been able to fix
the issue?

Is there maintenance going on maybe? I can't figure this out.
"Tim S." <tjstafford01@gmail.com>: Dec 04 04:43PM -0800 

Also removed package name on a new app.

On Sunday, December 4, 2016 at 6:40:36 PM UTC-6, Tim S. wrote:
"Tim S." <tjstafford01@gmail.com>: Dec 04 04:54PM -0800 

Built a blank app and tested - changed nothing and I get the same error.
Must be on the server side not compiling correctly or it's my LG v20 not
able to install. Let me know what I can do or if it's down right now when I
can use the service again.
Thanks.
"M. Hossein Amerkashi" <kkashi01@gmail.com>: Dec 04 08:24PM -0500 

Tim

Haven't tested on vt20. Do you have other device to test on? Do you see
same error on MIT AI for simple apps?

fabio cavalcante <cavalcante.fgc@gmail.com>: Dec 04 11:26PM -0200 

Try to use a regular QR CODE. It Works to me.

Em 4 de dez de 2016 11:24 PM, "M. Hossein Amerkashi" <kkashi01@gmail.com>
escreveu:
fabio cavalcante <cavalcante.fgc@gmail.com>: Dec 04 11:26PM -0200 

Try to use a regular QR CODE READER.

Em 4 de dez de 2016 11:26 PM, "fabio cavalcante" <cavalcante.fgc@gmail.com>
escreveu:
"Tim S." <tjstafford01@gmail.com>: Dec 04 06:22PM -0800 

What regular QR code reader do you suggest? I've downloaded the app to pc
and transfered to my phone as well as used the companion app with the qr
code to install, both result in the same error. I am installing the
companion app on a backup phone (htc 530) now, I will let you know what
happens.

On Sunday, December 4, 2016 at 7:26:49 PM UTC-6, fabio cavalcante wrote:
"Tim S." <tjstafford01@gmail.com>: Dec 04 06:29PM -0800 

Same issue on the HTC? weird. I've built it several times with the same
problem each time. - I tested a build that was downloaded to PC then to the
phone to rule out any QR code issues.
Is it possible that this is an issue with my DSL connection causing this?
I mean the app builds fairly quickly and downloads fast as it's very small
and has virtually no blocks but 1 set to test so I just can't wrap my head
around what's happening. It's not the v20, it's not nougat because it's
also happening on another device. I will build again and try I guess.
"M. Hossein Amerkashi" <kkashi01@gmail.com>: Dec 04 09:39PM -0500 

Can you do logcat?
"Tim S." <tjstafford01@gmail.com>: Dec 04 06:40PM -0800 

I just tested the MI2 service to see if it resulted in the same error and
it does.
I just compiled a blank app to see if it would install as I've done on here.
I'm not certain at all what I'm doing wrong here?
I don't think it's something to do with my connection because the error
wouldn't result from a build downloaded to PC.,.. I'm going to boot up a
live version of Ubuntu and see if that works, maybe it has something to do
with W10 and Chrome? I don't see how that would be, but will try anything
at this point.
"Tim S." <tjstafford01@gmail.com>: Dec 04 09:48PM -0800 

> and routers and both OS's settings were all correct, so I tested this
> theory by using SMHS on a different phone and connecting my PC and Phone
> both to this hotspot and the result was EXACTLY the same.

who knows, at least it's working now.

Deri Gustiadi <deri.gustiadi@gmail.com>: Dec 04 07:18AM -0800 

Lets Update Please on appybuilder

Pada Jumat, 18 November 2016 22.59.45 UTC+7, M. Hossein Amerkashi menulis:
pavementpilot <pavementpilot@gmail.com>: Dec 04 12:21PM -0800 

If it comes down to the two being in conflict, and it can not be resolved,
will you be making a bridging program to convert the current aia files to
the new one? Is that even possible?

On Sunday, December 4, 2016 at 7:18:47 AM UTC-8, Deri Gustiadi wrote:
Yannick Rouveau <cyrikou@gmail.com>: Dec 04 06:50PM -0300 

Hello everybody,

great work Hossein, thanks for that !

Inotice that the bloc ""screen" density" disappear. It's an error or he
will appear another in the final release ?

I import a projet of the other server, it make error just on this bloc
component
Thank you
Yannick Rouveau <cyrikou@gmail.com>: Dec 04 06:53PM -0300 

The preview on the tablet size didn't work too.
"M. Hossein Amerkashi" <kkashi01@gmail.com>: Dec 04 04:56PM -0500 

We are working toward that. However meanwhile, think of it as free service
for SILVER members; i.e. access to both servers.

David Sanborn <pavementpilot@gmail.com>: Dec 04 09:56PM 

Ok, thanks.

On Sun, Dec 4, 2016 at 1:56 PM M. Hossein Amerkashi <kkashi01@gmail.com>
wrote:
"massimo.antonini" <massimo.antonini@gmail.com>: Dec 04 04:20PM -0800 

Thanks Mr Hossein

Bunge <adanargino@gmail.com>: Dec 04 02:04PM -0800 

After the 4.1 update to apptomarket my resize formula no longer works.
How can we achieve dimensions that are suitable for every type of device?
this is one of the points really inferior to AppInventor in my opinion, and
should do something about.
Thank you all

"احمد ناصر" <albrnamg@gmail.com>: Dec 04 08:58AM -0800 

when i want to sign a new app and i click sign it keep reload for long time
and never stop

i restart my pc and try again but the same problem
what should i do ??

"M. Hossein Amerkashi" <kkashi01@gmail.com>: Dec 04 08:33AM -0500 

Opps :)

On Dec 4, 2016 3:30 AM, "massimo.antonini" <massimo.antonini@gmail.com>
wrote:

Is there any way to monitor a dog collar? tracking is gps


I'd like to be able to view my pet using  my own app with google maps, but all the tutorials I've found are always finding out our location. Any idea?

-- 
what kind of gps device does the dog collar have? any link?

-- 
You must find a way to send the current position of the pet to your mobile or tablet (where you are able to see the google map). I think that one way is to use a smart watch including nano (or micro) SIM card and GPS capability, able to send the current GPS position through SMS to your appinventor application in your mobile.

-- 

how to be able to compile this project of app inventor



.. What should I do?

--
Looks like you have a duplicated CLICK event. Check your block and find the ones with a red warning.

--


How do I change the landing page when I boot up the app?


I would like to know, do you guys know how I could change the landing page (the page that comes when I boot up the app)?

-- 
Screen1 is always the landing page. You could view my post HERE to see how to shuffle screens.


This video shows you how to manipulate App Inventor screens. It shows you how to:
1. HowTo copy screens: e.g. Copy Screen1 to AuthorsScreen
2. HowTo rename screens. e.g. rename AuthorsScreen to CatalogScreen
3. HowTo change order of screens; e.g. make CatalogScreen to be the start-up (initial screen)
a) Follow Step2 above to rename Screen1 to ScreenX
b) Follow Step2 above to rename CatalogScreen to Screen1
c) Follow Step2 above to rename ScreenX to NewScreenName



-- 
How to copy screens by Scott and a video by Hossein

--Ai2 File Assistant - Copy and Rename Screens--

 Copy_Screen.jpg
 Rename_screen.jpg
 Reorder_screen.jpg
 About_screen.jpg

https://github.com/saturnknts/MIT-App-Inventor-file-assistant
Written in AutoIt language and the source is available as well.  

-- AI2: copy screens using Windows Explorer--

This technique of copying screens in an AI2 project uses Windows Explorer to add new screens to an AI2 project. 

When copying screens manually, be careful not to use keywords such as 'Button' for your new screen names as 'button' is one of the words used in component definitions in the screen files. Manually copying a screen named 'Button' will cause any button definitions to be corrupted by replacing 'button' with the new screen name and the new screen will not work. I add an SCR suffix to my screen names to insure that this does not happen. Alternatively you could make sure that you avoid those keywords.

Also, when copying screens from one project to another, be sure to also copy any assets needed by those screens from the source project to the destination project.

Screen CanvasSCR will be copied and named ClockSCR. I captured the screens for each step of the process below: 

Export your project to a folder on your computer.
Then place a copy of it with the original name in another folder for adding the new screen to.

Replace the aia extension on the copy's project name with a zip extension:

Open the project with Windows Explorer:
Navigate to the folder containing the screen files:
Drag the files with the screen name to be copied out of the archive:
-
Edit each file:
Replace all instances of the old screen name with the new screen name:
...then save each file.
Rename the Screen files to the new screen name:
Drag a copy of the the renamed screens to the archive:
Change the project extension back to aia:

When you import the project into AI2 it will contain the new screen. If you have an <old screen name>.Initialize block in the original screen it will now be named <new screen name>.Initialize in the copied screen.
-- 

How to pull an mp4 video file from internal storage into the video player


It seems when I connect AI to my android tablet the video player works as it should but when I actually build the app and put it on the same tablet I get error 701. Here is a screenshot of the code used. What can I do to make this work? Note there is no SD card in the device. It is purely running on internal storage and the files I need are located within the Download folder.

2016-12-06 (1).png 표시 중

-- 
try a correct relative path, which is in your case
/Download/3d.mp4       

-- 
I changed the file path to /Download/3d.mp4 and it's still coming up with error 701.Am I missing something?

-- 
then I would try the full path, which is
  file:///mnt/sdcard/Download/3d.mp4

-- 

direct video upload on youtube


we can upload a resumable video.
Unfortunally this method doesn't work with ai2 because web component hasn't access at header parameters.

Someone know how do?

-- 
we already talked about that, see your other thread https://groups.google.com/d/msg/mitappinventortest/73_Yvbthu08/TJVHILONDAAJ

you might want to create your own web extension and add the response header as parameter in the web.gottext event
more information about how to create an extension see here https://groups.google.com/d/msg/mitappinventortest/Ip2AX036d0U/5NJlAEbFCgAJhowever that will be more advanced and will require some Java skills...

-- 
but I asked about a direct upload, the previous was to a resumable upload.

-- 
which means, you are talking about this https://developers.google.com/youtube/v3/docs/videos/insert
it seems to be, up to now nobody tried this...

you first can try the Google OAuth Playground https://developers.google.com/oauthplayground and find out, if you will be able to upload a video using the playground

you will have to work with OAuth, which is a little bit complicated...
for the OAuth part, probably my Google Drive example can help https://puravidaapps.com/drive.php 

-- 
I know Google OAuth Playground, let me say that it doesn't work (confirmed by post on GAS Forum). Anyway I know OAuth and I've already implemented it with success. So, how I've written in the past I was implementing a resumable upload video, but with ai2 we can't do ( I'm not able to develope java and use extension).
For this reason I asked if someone know how do a direct upload. Maybe your google drive snippet include this part, unfortunately there isn't a lot (visible) about how do the upload after the OAuth process.
If you can show me more snippet after OAuth could be a good base to find a solution.

-- 
I know Google OAuth Playground, let me say that it doesn't work (confirmed by post on GAS Forum)

you might want to provide a link to your post in the the GAS forum

Anyway I know OAuth and I've already implemented it with success.

the Drive example only will help with OAuth, You said, you already implemented OAuth with success, so you do not need the Drive example anymore.


For this reason I asked if someone know how do a direct upload.

you will have to follow the documentation https://developers.google.com/youtube/v3/docs/videos/insert and try something...
let us know about your progress

-- 
your link https://developers.google.com/youtube/v3/docs/videos/insert  hasn't a simple example to me, anyway using 

POST /upload/youtube/v3/videos?uploadType=part=snippet,status,contentDetails HTTP/1.1
Host: www.googleapis.comAuthorization: Bearer AUTH_TOKEN
Content-Length: 278
Content-Type: application/json; charset=UTF-8
X-Upload-Content-Length: 3000000
X-Upload-Content-Type: video/*

{
  "snippet": {
    "title": "My video title",
    "description": "This is a description of my video",
    "tags": ["cool", "video", "more keywords"],
    "categoryId": 22
  },
  "status": {
    "privacyStatus": "public",
    "embeddable": True,
    "license": "youtube"
  }
}
I've this  answer
HTTP/1.1 200 OK
Alternate-protocol: 443:quic
Content-length: 1100
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Vary: Origin, X-Origin
Server: UploadServer
Date: Sun, 03 Apr 2016 22:09:21 GMT
Etag: "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
Pragma: no-cache
Cache-control: no-cache, no-store, max-age=0, must-revalidate
X-guploader-uploadid: XXXXXXXXXXXXXXXXXXX......
Alt-svc: quic=":443"; ma=2592000; v="32,31,30,29,28,27,26,25"
Content-type: application/json; charset=UTF-8
X-goog-correlation-id: aaaaaaaaaaa
{
  "status": {
    "publicStatsViewable": true, 
    "privacyStatus": "public", 
    "uploadStatus": "uploaded", 
    "license": "youtube", 
    "embeddable": true
  }, 
  "kind": "youtube#video", 
  "contentDetails": {
    "duration": "PT0S", 
    "definition": "sd", 
    "licensedContent": false, 
    "dimension": "2d", 
    "caption": "false"
  }, 
  "snippet": {
    "thumbnails": {
      "default": {
        "url": "https://i.ytimg.com/vi/AAAAAAAAAAA/default.jpg", 
        "width": 120, 
        "height": 90
      }, 
      "high": {
        "url": "https://i.ytimg.com/vi/AAAAAAAAAAA/hqdefault.jpg", 
        "width": 480, 
        "height": 360
      }, 
      "medium": {
        "url": "https://i.ytimg.com/vi/AAAAAAAAAAA/mqdefault.jpg", 
        "width": 320, 
        "height": 180
      }
    }, 
    "title": "unknown", 
    "channelId": "ZZZZZZZZZZZZZZZZZZZ", 
    "publishedAt": "2016-04-03T22:09:20.000Z", 
    "liveBroadcastContent": "none", 
    "channelTitle": "name.....", 
    "categoryId": "22", 
    "localized": {
      "description": "", 
      "title": "unknown"
    }, 
    "description": ""
  }, 
  "etag": "\"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh\"", 
  "id": "aaaaaaaaaaa"
}
but now I don't know what do.
--