Intentionally Heat the Battery

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
frankfrank
Posts: 3
Joined: Thu Jan 14, 2016 11:41 pm

Intentionally Heat the Battery

Post by frankfrank » Thu Jan 14, 2016 11:50 pm

Hello.

Any tips on intentionally heating up the battery of an iPhone 5s?
(Running iOS 9.2)
Using Live Code 7.1.1 Community Edition

I have tried running a bunch of sensors at the same time with no luck:

Code: Select all

on preOpenCard
   put empty into field "messages1"
   --
   put empty into field "messages2"
   --
   put empty into field "messages3"
   --
   put empty into field "messages4"
   
end preOpenCard

on openCard
  
      mobileSensorAvailable ("heading", true)
         mobileStartTrackingSensor "heading", false
         --
         mobileSensorAvailable ("rotation rate", true) 
         mobileStartTrackingSensor "rotation rate", false
         --
         mobileSensorAvailable ("acceleration", true) 
         mobileStartTrackingSensor "acceleration", false
         --
          mobileSensorAvailable ("location", true)
         mobileStartTrackingSensor "location", false
end openCard

on closeCard
 
   mobileStopTrackingSensor "heading"
   //
   mobileStopTrackingSensor "rotation rate"
   //
   mobileStopTrackingSensor "acceleration"
   //
   mobileStopTrackingSensor "location"
   
end closeCard

//Location
on locationChanged latitude, longitude, altitude
   put "Location"&cr&"latitude:"&&latitude&cr&"longitude:"&&longitude&cr&"altitude:"&&altitude into field "messages1"
end locationChanged

//Acceleration
on accelerationChanged x, y, z
   put "Accel"&&x&cr&y&cr&z into field "messages2"
end accelerationChanged

//Heading
on headingChanged heading
   put "Heading"&&heading into field "messages3"
end headingChanged

//Rotation
on rotationRateChanged x, y, z
   put "Rotation rate"&cr&"X:"&&x&cr&"Y:"&&y&cr&"Z:"&&z into field "messages4"
end rotationRateChanged
and tried to create an infinite loop. No luck either.

Code: Select all

put 0 into myVar
repeat forever
   add 0 to myVar
   if myVar = 1 then
   end if
end repeat
Any ideas would be very much appreciated!

Thanks :)

-Frank

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Intentionally Heat the Battery

Post by dunbarx » Fri Jan 15, 2016 2:14 am

Turn on the LED to full. Vibrator on max. Music on jet engine. Roam. Bluetooth andinternet on.

Microwave?

Craig Newman

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Intentionally Heat the Battery

Post by Mikey » Fri Jan 15, 2016 3:37 pm

1. change name of phone to "Kevin's Phone"
2. from another phone send the text "Apple wants to buy LiveCode for $99 MM"
3. phone will sweat, vibrate, pant, and the camera's aperature will bug out.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Intentionally Heat the Battery

Post by FourthWorld » Fri Jan 15, 2016 4:38 pm

I'm curious: why would you want to take battery life away from the user?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

frankfrank
Posts: 3
Joined: Thu Jan 14, 2016 11:41 pm

Re: Intentionally Heat the Battery

Post by frankfrank » Fri Jan 15, 2016 6:24 pm

The idea is to use your phone as a hand warmer. It is not exactly going to be accepted into the app store, but it is just a fun experiment :)

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Intentionally Heat the Battery

Post by Klaus » Fri Jan 15, 2016 6:35 pm

Hi frank*2,

get a pair of these: http://www.amazon.com/HotHands-Hand-War ... 0051USN3A/, much cheaper than a new cellphone! 8)


Best

Klaus

frankfrank
Posts: 3
Joined: Thu Jan 14, 2016 11:41 pm

Re: Intentionally Heat the Battery

Post by frankfrank » Fri Jan 15, 2016 6:49 pm

I prefer the more convoluted way.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Intentionally Heat the Battery

Post by Klaus » Fri Jan 15, 2016 7:09 pm

Hi frankfrank,

before I forget: Welcome to the forum! :D
And "suum suique" 8)


Best

Klaus

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Intentionally Heat the Battery

Post by Mikey » Fri Jan 15, 2016 8:08 pm

YES! STEAMPUNK!

Post Reply