iamwsumit
(Sumit Kumar)
December 3, 2020, 3:35am
#1
Countdown Timer
Hello everyone today I am very happy to lauch my first extension.
It is countdown timer extension as known by name and it is free so without wasting any time let talk about extension
All Blocks
All Properties
Documentation
There are total 9 blocks in extension
This event occurs when your countdown timer is finished
Endtime :- It return endtime that you have given in coundown block
This blocks raises when you got time from web
time :- Time format is dd:MM:YYYY:hh:mm:ss
This block returns you the countdown
Endtime Format :- DD:MM:YYYY:hh:mm:ss
CurrentTime Format :- DD:MM:YYYY:hh:mm:ss
Set the Continent of the api
Set the Timezone of api
Return the current continent
Return the current timezone
Instruction
We are getting time from this api
http://worldtimeapi.org/api/ip
as you can see how have we used this block now it will return the coundown in Got Countdown Block
This will return the countdown timer in this format [ days , hours , minutes , seconds ]
Here the coundtdown is finished
It will return the Endtime that you have given
Countdown
Note :- ==All time formats must be in 24 hours format==
Downloads
Download Extension :
App :- https://drive.google.com/u/2/uc?id=1wHZXEtbhsfy6OxQbZ-eB-eXDV_K9FMYf&export=download
Aia :- https://drive.google.com/u/2/uc?id=1N33I50oUIDHHv1xOc0fCN06p_gMWpCcH&export=download
Very thank u to @WatermelonIce they helps me a lot I have no words to thank him
For online time this method is given to me by @ADDYLIN you can ask him for any query
Donate
If you like my work then donate if you can
Latest Usage
Version 4
Version 4 of this extension contains some new blocks and the extension has updated now fully.
Block Updated
[component_method(16)]
This block has now changed due to @Santhosh request. Now current time parameter has changed , now you dont need to give the current time anymore.
[component_event(8)]
This event raises when all the timezones from the API is fetched.
API is http://worldtimeapi.org/api/timezone/
[component_method(17)]
This block fetches the all timezones as I sa…
34 Likes
Congratulation for your first extension bru
5 Likes
DevYB
(Ayoub Mounchid)
December 3, 2020, 9:24am
#7
Hello, @iamwsumit !
Thanks for your contribution.
Please follow the naming conventions:
If you are developing an extension, then please follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names, no underscores .
Example
[naming]
All components and extensions follow the naming conventions… and these naming conventions have been setup by the MIT App Inventor team, see also the App Inventor Extensions document
see here why naming conventions make sense …
7 Likes
DevYB
(Ayoub Mounchid)
December 3, 2020, 10:17am
#9
For property, method and event use: UpperCamelCase .
For parameter names use: lowerCamelCase .
To understand better please read carefully this topic:
If you are developing an extension, then please follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names, no underscores .
Example
[naming]
All components and extensions follow the naming conventions… and these naming conventions have been setup by the MIT App Inventor team, see also the App Inventor Extensions document
see here why naming conventions make sense …
6 Likes
Taifun
December 3, 2020, 3:27pm
#10
iamwsumit:
not understood
your package name should be without undercore, i.e. CountdownTimer rather than Countdown_Timer
same for the Event names, i.e. CountdownFinished and GetCountdown would be correct, this is called UpperCamelCase because the first letter is an uppercase letter
and for the properties endTime , currentTime , countdown would be correct, this is called lowerCamelCase because the first leter is a lowercase letter
hope that helps
Taifun
7 Likes
Manbir
(manbir)
December 6, 2020, 9:56am
#11
Great Extension @iamwsumit
And congrats for your 1st extension
3 Likes
@iamwsumit , you did a great job. It is very much useful to develop counter and timer based apps.
All the best.
Keep koding.
3 Likes
iamwsumit
(Sumit Kumar)
December 24, 2020, 6:12am
#16
Really thank you very much
4 Likes
i can feel the joy of first extension,nice extension
4 Likes
When will u add online time get block
2 Likes
I also trying to learn Extention development. Can u share source code with us?
2 Likes