It doesn't matter where the features come from. You can replace the GPX feed with an RSS feed. The important thing in that sample is that the FeatureLayer is using a FeatureCollection with LayerDetails that has TimeInfo with a startTimeField. See the fLyr_initializeHandler() function. You can change the startTimeField to whatever attribute you'll be setting in the Graphics you create.
If you're going to be tracking multiple trucks, you can set the trackIdField on the FeatureLayer to the attribute that identifies each truck.
Attatched is another sample that gets the latest photos from Flickr every 10 seconds.