How to incorporate live tiles into a Project Siena app (kinda)

Hi guys,
I have been playing around with getting some live tiles into my project siena app (Astronomy Action Centre), and at last I have managed it.
What I did was as follows
Publish your app as normal and import it into Visual Studio
When you have it imported paste this code into the init.js file. I pasted mine into the following location of that file. Near the top of the file (just before the var statements)
CODE TO PASTE
var notifications = Windows.UI.Notifications;
                var recurrence = notifications.PeriodicUpdateRecurrence.hour;
                var urls = [
                    new Windows.Foundation.Uri("url1"),
                    new Windows.Foundation.Uri("url2"),
                    new Windows.Foundation.Uri("url3"),
                    new Windows.Foundation.Uri("url4"),
                    new Windows.Foundation.Uri("url5")
                notifications.TileUpdateManager.createTileUpdaterForApplication().enableNotificationQueue(true);
                notifications.TileUpdateManager.createTileUpdaterForApplication().startPeriodicUpdateBatch(urls, recurrence);
END OF PASTE
What you need to do now is replace the url1,url2,url3,url4,url5 with data sources.
I got mine from http://www.buildmypinnedsite.com/en
This site creates live tiles for your webpage but we are going to use the datasources for our app.
Enter the RSS details of the site that you want to have as a live tile into this site.
Here is the RSS url from my own site
http://www.viewfromascope.com/feed/
follow the steps through to the last one and you will get a code like this
<meta
name="msapplication-TileColor"
content="#000000"/>
<meta
name="msapplication-notification"
content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=5;
cycle=1"/>
Now copy the links below in place of the url1,url2,url3,url4,url5 in the code we pasted into visual studio.
http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=1
http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=2
http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=3
http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=4
http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=5
Now save and run your app, if you browse to your Start menu and pin your app you should see the live tiles updating.
the caveat is that you have no control over the layout of the tiles, it seems to work best in wide and square format, the large tile updates but keeps repeating the same news.
So there it is live tiles on a project siena app.
if anyone can add to this I would love to hear from you, or if you have any questions please let me know.
Latest Version of my own Project Siena App with live tiles
http://apps.microsoft.com/webpdp/app/0c8cff77-1e0f-445b-9628-92fe602d2c98
Ronan

If you aren't going to use a live tile on an actual website, you don't have to use buildmypinnedsite dot com.
Here is a template. If you have multiple REST/RSS sources, you can use different sources for each of the 5 items that are cycled. They can be from different sites. You need to check if images in the feeds are enclosures. If they are, then the feed won't
work properly. You can use text and image based feeds or text only, just don't use any that have enclosed images. Here is a template you can copy and paste. replace the red text with your own customized information.
var notifications = Windows.UI.Notifications;
var recurrence = notifications.PeriodicUpdateRecurrence.HalfHour;
var urls = [
new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed1&amp;id=1"),
new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed2&amp;id=2"),
new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed3&amp;id=3"),
new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed4&amp;id=4"),
new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed5&amp;id=5")
notifications.TileUpdateManager.createTileUpdaterForApplication().enableNotificationQueue(true);
notifications.TileUpdateManager.createTileUpdaterForApplication().startPeriodicUpdateBatch(urls, recurrence);
-- Barb Bowman

Similar Messages

  • Can anyone advise me how to insert a hyperlink into a project I am using Captivate 5?

    Can anyone advise me how to insert a hyperlink into a project - I am using Captivate 5

    You can use an interactive object such as a click box placed over the top of a text caption, or a button, to link to the URL.  However, these will not strictly-speaking appear identical to hyperlinks.
    If you really want to replicate the rollover appearance of a true HTML text hyperlink, then you might consider the Hyperlink widget from Infosemantics:
    http://www.infosemantics.com.au/adobe-captivate-widgets/hyperlink-interactive/help
    Free trial versions for download hers:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets

  • My latest Project Siena App is now in the store

    I decided to build yet another Project Siena App the other day when I was semi snowed in.
    My NWS-NOAA Weather Prediction Mini Center Windows 8 app lets you quickly view the National Forecast Chart for three days, shows the Quantitative Precipitation Forecasts for up to 7 days, and view Excessive Rainfall Forecasts. It’s available now in the
    Windows Store (for USA). You can read more about it (and my love for Project Siena) at
    http://digitalmediaphile.com/index.php/2014/02/20/my-weather-prediction-mini-center-app-is-now-available/.
    This very simple app went through store certification in record time yesterday. Made my head spin.
    Submitted at 1:15pm
    Approved at 2:10pm
    Available at 2:45pm
    All times above Eastern.
    Main screen:
    Can't wait to see what the next release of Project Siena brings. Hoping for Portrait view CSS support and Windows 8.1 target support.
    -- Barb Bowman

    On Tue, 6 May 2014 11:05:13 +0000, MonaTech wrote:
    >In terms of styling what I do is
    >
    >1. create an excel file with 1 column titled num1 or something
    >
    >2. Beneath that add sequential numbers 1,2,3,4,5 (the numbers correspond to the number of pages in your gallery), create a table and save the file
    >
    >3. Add that file as a data source.
    >
    >4. Create a custom gallery and make set the items to the table,
    >
    >5. Start adding your elements to the first section of the gallery
    >
    >6. in the visible property add if(thisitem!num1=1,true,false)
    >
    >This will make that element appear on the first section of the gallery, if you put if(thisitem!num1=2,true,false) then it will appear in the second element and so on.
    >
    >It does get a little awkward when you start adding more elements but if you label each element correctly it makes live an awful lot easier.
    >
    >Using this method you can add items of different sizes and shapes to each element of the custom gallery. So you could make something like the bing news app if you like.
    >
    >I hope this helps, if you have any other questions please let me know, also I would love to see your siena forum app, I really like the layouts of your other apps and would be keen to see your app on the forum.
      that's really cool. I like that alot.
     After I saw your post about the app, I stopped playing with mine ;-)  Maybe
    I'll finish it... But since yours works, I didn't see any need <G> as I was not sure how to fix the messy HTML tags in the description. Like I said, MS has an RSS feed that leaves a lot to be desired.
    -- Barb Bowman

  • Surface Pro 3, Project Siena Apps, Need CSS for that form factor ASAP please

    Now that the Surface Pro 3 is out, I really don't like the black bars that appear above and below Project Siena Apps.
    I don't know enough to figure out how *I* can edit the CSS which currently states:
    #publishedCanvas {
        /* TASK: 73670: Add support for different form factors. */
        width: 1366px;
        height: 768px;
        background-color: transparent;
    but I'd like the code I should use (at my own risk, I know) to fix the CSS for all my apps.
    Please, MS folks or anyone?
    -- Barb Bowman

    Now that the Surface Pro 3 is out, I really don't like the black bars that appear above and below Project Siena Apps.
    I don't know enough to figure out how *I* can edit the CSS which currently states:
    #publishedCanvas {
        /* TASK: 73670: Add support for different form factors. */
        width: 1366px;
        height: 768px;
        background-color: transparent;
    but I'd like the code I should use (at my own risk, I know) to fix the CSS for all my apps.
    Please, MS folks or anyone?
    -- Barb Bowman

  • Project Siena app and analytics system

    Hi,
      how I could implement analytics system in my Projects Siena app?
    Thanks,
    Mantvydas

    Hi Mantvydas,
    Within Siena, there is no native support for instrumenting your app. However, once you publish your app from Siena and
    convert to an *.appx package, that is consumable via Visual Studio, then you could look at leveraging technologies such as
    AppInsights for Visual Studio Online to accomplish this.
    AppInsights gives you full usage analytics, that informs you exactly how your app is being used and provides detailed performance data about your app. For more details about implementing such within your app, you could review
    this comprehensive post from the Windows Apps Team.
    Hope this helps, thanks!

  • My 2 Project Siena Apps listed as New and Rising in Windows Store

    Hmmn, my two latest Project  Siena apps, GOES Satellite Imagery and Doppler Radar Mosaic Imagery are
     listed as new and rising with some heavyweight products like BBC and Weather Channel. I must be hallucinating. I have no idea what being listed with such heavy hitters means, but...
    -- Barb Bowman

    Nice one Barb, congratulations

  • Live Tile - Project Siena App

    I understand that it is not possible to create / configure a live tile within Project Siena.
    But is it possible to add this functionality once the project has been transferred to visual studio.
    I have been looking online and have seen some examples of creating a live tile but I have no idea where the code should go within the project.
    Any help would be most appreciated.
    Ronan

    Hi MonaTech, 
    as you've noticed Live Tiles are not supported in Siena Beta 2. If you want to invest time in experimenting with a homegrown solution in this area, I can provide a hint for a starting point. That said, please be aware that once you start modifying the published
    package you are completely at your own risk and any modifications you do today are not guaranteed to work in the future as the layout of the published package is implementation detail and not an interface.
    You can take a look at js/init.js in the published package. It contains the initialization logic of the published app and you might find it to be a useful starting point.
    Hope this helps!
    Manski

  • How to disable live tile option in people ....lumi...

    in my lumia 730 people and some other apps provide live functionality but i want to disable if when it needs because of battery draining

    Welcome to our community, vijaynaramalli. Live tile feature is part of the phone's software and cannot be changed or disabled. You could suggest that through here: Feature Suggestions. If you're worried about the phone's battery, you may try some tips from this link on how to make it last: Battery: making it last. Let us know the outcome. 

  • SOLVED - Weather App Doesn't Update Live Tile, Xbox (Games, Music, Video) App stuck at "Signing In" Help?

    I'm running Windows 8 Pro (RTM -> TechNet). Everything seemed OK the first day of use. Now onto the next day, I can't "Sign In" to any of the Xbox Apps and the Bing Weather app doesn't update its Live Tile with local weather. Other tiles/apps like Finance
    appear to be fine.
    Event Viewer is reporting:
    App Microsoft.BingWeather_8wekyb3d8bbwe!App did not launch within its allotted time.
    or
    The program wwahost.exe version 6.2.9200.16384 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: b30
    Start Time: 01cd7d96ab2036fa
    Termination Time: 51
    Application Path: C:\Windows\system32\wwahost.exe
    Report Id: c736bb20-e98a-11e1-be69-386077604c72
    Faulting package full name: Microsoft.XboxLIVEGames_1.0.928.0_x64__8wekyb3d8bbwe
    Faulting package-relative application ID: Microsoft.XboxLIVEGames
    I am able to sign-in to the SkyDrive App without issue, and the Store App works fine as well. I have tried uninstalling Games, Music, and Video apps and reinstalling to correct the issue, no dice.  
    My Microsoft Account still signs into this site, my regular Xbox, iPad Xbox App, and Windows Phone just fine. What is up with Windows 8? Thanks in advance.

    It appears to end up having been a time sync issue. I must have only been off a couple of seconds?!? I decided to try Armed! and it reported a difference in Time when creating my profile for the game and I was like.. hmmm. So I went ahead and hit Internet
    Time settings (under Date and Time in Control Panel) and did a Update Now with time.windows.com. I am now able to login on all the apps I was having issues with before where it was stuck at "Signing In".

  • Add project siena app to favorite key on keyboard

    Hello and merry Christmas to everybody
    Have anyone tried to add widows8 app as project sienna into a favourite key on your keyboard?
    Sorry for asking that here but I haven't found better discussion for windows comfort 5000 keyboards or a solution on net

    Hello,
    As long as you stay in your app you can do the following in Siena.
    Assuming you have your audioplayer on screen1. Set the start parameter of the player to "audiostart" and the loop to "true"
    In the onVisible of the screen you can then add the following (you can add that to a button or something else too)
    UpdateContext({startaudio:false});UpdateContext({startaudio:true})
    That will keep on playing the audio regardless of the fact that you are moving away from the screen.
    Just make sure that your parameter autopause is set to False (same with autostart).
    Reading your post you want in to play even when moving completely away from the app (e.g. start doing something completely else).
    I'm not sure that is possible today with Siena. If that's a function you want to add to the wishlist you can add it to
    https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com

  • My first Project Siena APP! - Cooking Utility Belt

    Just started using Project Siena and I built my first app. What a fun experience. There was a bit of a learning curve and some additional documentation would have helped but the forum came through for me.  Here is my app, check it out :)
    Cooking Utility Belt
    Tim

    Doing some more research, I came across this in the free e-book from Microsoft Press, Programming Windows Store Apps with HTML, CSS, and JavaScript (Second Edition):
    For basic licensing and trial enforcement, the good news is that both are effortless: the app doesn’t need to do anything at all! A user cannot acquire your app without going through the Store, and even if he did manage to, he’d have to have a developer
    license to install and run it. Furthermore, because the Store automatically tracks trial periods for apps, Windows will simply not launch an app once the trial is expired. Instead, Windows will redirect the user to the product’s page in the Store where the
    user can purchase a full license.
    What that means to me is that when submitting the app in the store you can select if it's a trial mode or not.
    Although it's not as elegant of a solution with code, at least there isn't a concern of losing functionality when a new version of Siena is released, either!
    Thor

  • How do I embed fonts into Captivate projects?

    This question came up in May 2006 but was never really
    answered. I'd like to know how to embed fonts into my Captivate
    projects so that the output looks the same on all computers. While
    the text animations are fine, the Text Caption fields are the ones
    that seem to have fonts that go walkies on other computers. I know
    you can embed fonts in PDFs. Why not in Captivate (unless I'm
    missing something in 2.0).

    First, a tip for the forums: If you use the URL tags, your
    post won't require horizontal scrolling - sorry, but I use Firefox
    and entering a long URL totally blows my ability to smoothly read
    the post ... you can manually add a text link by using the "L" tag
    as shown below (I've put spaces in to avoid this being turned into
    another text link)
    [ L = Your Text]
    http://www.yourdomain.com [ /
    L ]
    Back to your issue, Charinos. I'm glad you did find the URL,
    but that thread and your problem are not even in the same world.
    That thread deals with fonts in text-entry boxes (boxes for
    end-user text-entry), and you are talking about text-captions, an
    entirely different object.
    In fact, if you make changes and save those changes to a
    text-caption, then publish the project, the fonts in your text
    captions will remain stable and are not dependent on the fonts
    installed on the end-viewer's machine. The reason is that when the
    SWF is compiled, the text captions are converted to images and so
    long as the file is viewed as intended in the HTML document - at
    the proper size - the stretching you describe cannot take place.
    I'm not saying you are seeing things, but if my understandings of
    the Captivate machine are correct, what you are saying is happening
    cannot
    be happening. Something else is going on, like a failure to
    save changes, use of non-conforming text-caption boxes with a
    resultant loss of margins, or something.
    Sorry I'm not more help. I can't duplicate what you are
    seeing but I hope someone else can help you out - I may still be
    misunderstanding your issue.

  • How to convert raster tiles into buffered images?

    Abstract:
    Using the code below i try to render four tiles of an image and then store them in different files. Problem: Only the tile 0,0 gets rendered correctly.
              SunTileScheduler sts = new SunTileScheduler(4,0,0,0);
              sts.scheduleTiles(img, new Point[]{
                        new Point(0,0)
                        , new Point(0,1)
                        , new Point(1,0)
                        , new Point(1,1)
              }, new TileComputationListener[]{
                        new TileComputationListener() {
                   public void tileComputed(Object obj, TileRequest[] atilerequest, PlanarImage planarimage, int i, int j, Raster raster)
                   Hello
    I am using JAI to create a RenderedOp object named img and then call the TileScheduler to render me four tiles. Appearantly the scheduler tiles in 512x512, so the Point Array should render the pixels from 0,0 to 1024, 1024 spread accross four tiles.
    Unfortunatly only the tile 0,0 (-> pixels 0,0,511,511) gets rendered correctly, the other three are black and take 4725 bytes each in the file system. Tile 0,0 takes ~95k
    The TileComputationListener returns a Raster object that i convert into a BufferedImage:
                        BufferedImage image = new BufferedImage(raster.getWidth(),raster.getHeight(), BufferedImage.TYPE_INT_RGB);
                        image.setData(raster);After that i write the image into the file system
                        String fileName = String.format("d:/temp/tile/tiles_%s_%s.jpg", i,j);                    
                        try
                             FileOutputStream stream = new FileOutputStream(fileName);
                             JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(stream);
                             JPEGEncodeParam encodeParam = encoder.getDefaultJPEGEncodeParam(image);
                             encodeParam.setQuality(1.0, true);
                             encoder.setJPEGEncodeParam(encodeParam);
                             encoder.encode(image);
                             stream.flush();
                             stream.close();Tiles seem to be problematic because this constructor
    public BufferedImage (ColorModel cm,
                              WritableRaster raster,
                              boolean isRasterPremultiplied,
                              Hashtable<?,?> properties) {rejects Rasters whose tile index is != 0,0. So it all boils down to this:
    How do i convert a Raster objects into a BufferedImage?
    Regards
    Mark

                                  WritableRaster wr = (WritableRaster) raster;
                                  WritableRaster newRaster = wr.createWritableTranslatedChild(0,0);
                                  BufferedImage image = new BufferedImage(planarimage.getColorModel(),
                                            newRaster,false,new Hashtable());

  • How to import BC4J package into JDEV project without server.xml file?

    Dear,
    I need to bring the seeded BC4J package into my JDEV OAF project. Usually to do that, once I am sure that all I need is accessible, I open the server.xml file for the BC4J that I need and I am all set - all the items from under that BC4J are brought in.
    How about if there is no server.xml file for that BC4J, for example, under oracle.apps.icx.por.req.webui, and I need to have a controller from under there in my project? Do I create this package (oracle.apps.icx.por.req.webui) manually? If I do that and then open the controller the controller is being brought into JDEV outside the package.
    Thank you.
    Anatoliy

    Sumit,
    Thank for quick response.
    Yes, I agree for the controller.
    But let's say I want to bring over some other xml staff, like some shared regions for example from under that webui. They are also brought outside the package. You have an idea?
    Regards,
    Anatoliy

  • How to incorporate one VI into the other VI

    HeLLO Everyone
    I am working on this VI, in which I need to incorporate other VI, have to use the second VI as a part of the first VI.
    How to work on connector pane, how to connect terminals and so on.
    thanks
    srinath

    Also, to learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    I believe that's a first. Just the macro with no additional text.
    Try to take over the world!

Maybe you are looking for